in reply to TIMTOWTDI - printing an array
Anonymous subroutine perhaps?
knoppix@Microknoppix:~$ perl -E ' > @arr = qw{ 11 22 33 44 }; > sub { say shift while @_ }->( @arr );' 11 22 33 44 knoppix@Microknoppix:~$
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: TIMTOWTDI - printing an array
by choroba (Cardinal) on Jun 20, 2012 at 23:43 UTC | |
by johngg (Canon) on Jun 21, 2012 at 08:29 UTC | |
by johngg (Canon) on Jun 21, 2012 at 10:54 UTC |