in reply to a small help in split
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: a small help in split
by hmerrill (Friar) on May 06, 2003 at 13:57 UTC | |
|
Re: Re: a small help in split
by Anonymous Monk on May 06, 2003 at 14:02 UTC |