use strict; use warnings; use Data::Dumper; my $string = "RABBIT 45 -126.06686"; my @parts = split /\s+/, $string; print Dumper(\@parts); __END__ $VAR1 = [ 'RABBIT', '45', '-126.06686' ];
Also, the code you posted has a compile error.
In reply to Re: Pattern match and splitting of that
by toolic
in thread Pattern match and splitting of that
by Nansh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |