Ovid <[EMAIL PROTECTED]> writes:
> --- Barry Jones <[EMAIL PROTECTED]> wrote:
>> If I have a hash full of values, and some of those values point to
>> arrays of more values...in a loop, how could I distinguish which ones
>> pointed to an array and which were just string values?
>
> Barry,
>
> Use
On Tuesday, May 21, 2002, at 03:45 , Ovid wrote:
> --- drieux <[EMAIL PROTECTED]> wrote:
[..]
>>
>> http://www.wetware.com/drieux/pbl/perlTrick/WhatIsMeetsIsa.txt
[..]
>
> Ah, but that's the point of ref. If you have a reference, it returns the
> type of reference. If you have a simple scalar,
Barry Jones wrote:
>
> If I have a hash full of values, and some of those values point to
> arrays of more values...in a loop, how could I distinguish which ones
> pointed to an array and which were just string values?
>
> If that doesn't make sense, here's jotted diagram:
>
> Hash
> Key 1
--- drieux <[EMAIL PROTECTED]> wrote:
>
> On Tuesday, May 21, 2002, at 12:23 , Ovid wrote:
>
> > Use the 'ref' function for this:
> >
> > perldoc -f ref
>
> my complements.
>
> why can I never remember that one
> once again thanks... I have updated
>
> http://www.wetware.com/drieux/pb
On Tuesday, May 21, 2002, at 12:23 , Ovid wrote:
> Use the 'ref' function for this:
>
> perldoc -f ref
my complements.
why can I never remember that one
once again thanks... I have updated
http://www.wetware.com/drieux/pbl/perlTrick/WhatIsMeetsIsa.txt
and I think I have a possible so
On Tuesday, May 21, 2002, at 12:17 , Barry Jones wrote:
> If I have a hash full of values, and some of those values point to
> arrays of more values...in a loop, how could I distinguish which ones
> pointed to an array and which were just string values?
eg:
while ( my ( $key , $val ) =
--- Barry Jones <[EMAIL PROTECTED]> wrote:
> If I have a hash full of values, and some of those values point to
> arrays of more values...in a loop, how could I distinguish which ones
> pointed to an array and which were just string values?
Barry,
Use the 'ref' function for this:
perldoc -f
If I have a hash full of values, and some of those values point to
arrays of more values...in a loop, how could I distinguish which ones
pointed to an array and which were just string values?
If that doesn't make sense, here's jotted diagram:
Hash
Key 1 => Value
Key 2 => Value
Key