Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: shrinking the path

by archen (Pilgrim)
on Feb 02, 2005 at 00:36 UTC ( #427107=note: print w/ replies, xml ) Need Help??


in reply to shrinking the path

I'd be inclined to do this (assuming that file and the directory are together):

use File::Basename; print 'Evit9/' . basename( $folder_path );
If I understand your intentions. Think it's a bit more readable then a regex.


Comment on Re: shrinking the path
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-12-28 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls