# read one line of input my $line = <STDIN>; # remove the line ending chomp $line; # then either my ($foo, $bar, $baz, $quux) = split(/ +/, $line); # or my (@data) = split(/ +/, $line); # the latter is better if you don't know how many elements you'll get
In reply to Re^3: Input data problem
by Anonymous Monk
in thread Input data problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |