The bottom one creates a list of references, not a reference to a list.
C:\>perl -e "($x,$y)=\qw(a b);print $$y" b
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to Re: qw with anonomous list ref
by Ovid
in thread qw with anonomous list ref
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |