in reply to Save first n values from a file
update*for $x (f .. j){ chomp(${$x} = <DATA>); } print "$f $g $h $i $j\n"; __DATA__ a b c d e
output:do{for $x (i, g, k){ chomp(${$x} = <DATA>); } print "$i $g $k\n";} until eof; __DATA__ a b c d e f g h
a b c d e f g h
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Save first n values from a file
by LanX (Saint) on Jan 10, 2014 at 12:28 UTC | |
by Lennotoecom (Pilgrim) on Jan 10, 2014 at 12:38 UTC |