in reply to Hash keys reference
However, you can do something bizarre like this:
That works, whilemy @foo; @foo[0..2] = (10, \$foo[0], 20); print ${ $foo[1] }; # 10
does not. ;)my @foo; @foo = (10, \$foo[0], 20); print ${ $foo[1] }; # nothing
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a (from-home) job
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
---|
Replies are listed 'Best First'. | |
---|---|
•Re: Re: Hash keys reference
by merlyn (Sage) on Mar 04, 2002 at 03:22 UTC | |
by japhy (Canon) on Mar 04, 2002 at 03:30 UTC |