Note that the "\s+" will split on one or more whitespace characters, so it will still work if they accidentally type two spaces between some words.print "Enter some words (separated by spaces): >> "; chomp(my $line = <STDIN>); my @words = split /\s+/, $line;
Cheers,
Darren :)
In reply to Re: Getting Multiple inputs
by McDarren
in thread Getting Multiple inputs
by gzayzay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |