- or download this
($fn,$ln) = split(/\s+/,$input);
- or download this
$input = "foo bar blurf";
($f,$s) = split /\s+/, $input;
print "<$f> <$s>\n"
__END__
<foo> <bar>
- or download this
$input = "foo bar blurf";
($f,$s) = split /\s+/, $input, 2;
print "<$f> <$s>\n"
__END__
<foo> <bar quux>