trantorvega has asked for the wisdom of the Perl Monks concerning the following question:
From the documentation it doesn't seem the above ought to work, but it does. Anyone knows why?$ perl -e '@a = qw/1222 2 3/; while (<@a>) { print $_ ."\n";}' 1222 2 3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Diamond operator iterating over arrays?
by almut (Canon) on Oct 28, 2009 at 23:31 UTC | |
by moritz (Cardinal) on Oct 28, 2009 at 23:41 UTC |