in reply to Input data problem
Use split:
19:20 >perl -MData::Dump -we "my $line = qq[1 10 8 6\n]; chomp $line; +my @data = split / /, $line; dd \@data;" [1, 10, 8, 6] 19:20 >
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Input data problem
by Anonymous Monk on Jan 14, 2014 at 10:07 UTC | |
by choroba (Cardinal) on Jan 14, 2014 at 10:20 UTC | |
by Anonymous Monk on Jan 14, 2014 at 13:17 UTC | |
by choroba (Cardinal) on Jan 14, 2014 at 13:33 UTC | |
by MidLifeXis (Monsignor) on Jan 14, 2014 at 13:31 UTC | |
by Anonymous Monk on Jan 14, 2014 at 13:21 UTC |