laziness, impatience, and hubris | |
PerlMonks |
Re: Using splitby diotalevi (Canon) |
on Mar 07, 2003 at 11:16 UTC ( [id://241109]=note: print w/replies, xml ) | Need Help?? |
Don't use split. Try this instead.
If you really wanted to use split then you could write this as my $fname = (split '/', '/home/bin/scripts/test.pl)[-1]; Seeking Green geeks in Minnesota
In Section
Seekers of Perl Wisdom
|
|