Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 chilling in the Monastery: (6)
As of 2014-08-31 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls