nebbish has asked for the wisdom of the Perl Monks concerning the following question:
i'm hoping that someone can explain what i'm seeing.
run a script with the following code
then perform 'x \%args'...you'll see this:my %args; $args{'expr'} = \['booya' 'kada'];
then run the followin in a script:DB<2> x \%args 0 HASH(0x1cb3778) 'expr' => REF(0x1a35d54) -> ARRAY(0x1ca0124) (WHY AN ARROW?) 0 'booya' 1 'kada'
in this case 'x \%args' produces:my %args; my @ary; @ary = ['booya', 'kada']; $args{'expr'} = \@ary;
so my question is this: what to the ARROW & ZERO signify and what is the difference. i'm guessing its related to anonymity, but i don't know and i believe there is a gem of knowledge here i don't want to lose.DB<3> x \%args 0 HASH(0x1cb3778) 'expr' => ARRAY(0x1cb3844) 0 ARRAY(0x1cea068) (WHY A ZERO?) 0 'booya' 1 'kada'
i suppose a second question is this: where could i have found this answer myself - any documentation that explains debugger command outputs (in detail).
thanks in advance, nebbish
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using the perl debugger...
by salva (Canon) on Apr 03, 2006 at 19:44 UTC | |
|
Re: using the perl debugger...
by gaal (Parson) on Apr 03, 2006 at 19:50 UTC | |
|
Re: using the perl debugger...
by nebbish (Novice) on Apr 04, 2006 at 17:32 UTC |