Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: splitting on win32 linefeeds aka pass the crackpipe!

by chipmunk (Parson)
on Feb 14, 2002 at 04:05 UTC ( #145372=note: print w/ replies, xml ) Need Help??


in reply to Re: splitting on win32 linefeeds aka pass the crackpipe!
in thread splitting on win32 linefeeds aka pass the crackpipe!

The original substitution doesn't actually remove a trailing slash; rather, it removes the directory path leaving just the name of the file. If $filename is '/usr/local/bin/perl', $file will be 'perl'.

This is better done with File::Basename.

  • Comment on Re: Re: splitting on win32 linefeeds aka pass the crackpipe!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://145372]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2016-06-30 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (389 votes). Check out past polls.