bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inconsistent function of "-v" use w/arrays and hashes


From: Linda Walsh
Subject: Re: inconsistent function of "-v" use w/arrays and hashes
Date: Mon, 15 Feb 2016 16:50:11 -0800
User-agent: Thunderbird



Linda Walsh wrote:
I seem to remember some discussion of this before --
not being able to use -v to check if a hash was defined,
but having it "work"(?) w/arrays?
----
So instead of "-v" on an array/hash name only looking at the
value of [0] (for either), can it be enhanced to check the
type of the "varname", and if it is an array or hash,
check to see if the count of members returns >0? and use
that as a t/f value for multi-valued objects?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]