Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: remove directory path

by sen (Hermit)
on Mar 02, 2006 at 13:47 UTC ( #533879=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"; $file = (split(/\//, $file))[-1]; print $file;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2017-06-29 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (653 votes). Check out past polls.