Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: remove directory path

by sen (Hermit)
on Mar 02, 2006 at 13:48 UTC ( #533881=note: print w/replies, xml ) Need Help??


in reply to Re: remove directory path
in thread remove directory path

try this..

$file = "/opt/local/bin/zap.exe"; print $file = (split(/\//, $file))[-1];

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://533881]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2017-04-28 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (517 votes). Check out past polls.