$ perl -e 'print pop @{[split m|/|, "/home/bin/scripts/test.pl"]};' test.pl $
Update: Changed example to OP's example.
CU
Robartes-
In reply to Re: Using split
by robartes
in thread Using split
by nite_man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |