You need to split on whitespace. Here is one way:
# convert @ips to AoA # oops already is # @ips = map { [split " "] } @ips; my @newips = map { $_->[0] } @ips; my @num = map { $_->[1] } @ips;
Update: Oops, misread. The maps stand.
After Compline,
Zaxo
In reply to Re: Array of Arrays Question
by Zaxo
in thread Array of Arrays Question
by dru145
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |