You can accept a list of values on the left by surrounding them with parenthesis, like 'my ($filename, $extension) = ...'.my $a = "index.html"; my ($filename, $extension) = split /\./, $a; print "filename = $filename\n"; print "extension = $extension\n";
In reply to Re: a small help in split
by hmerrill
in thread a small help in split
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |