Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: file name parsing to get the original file name

by MarkM (Curate)
on Dec 13, 2012 at 23:55 UTC ( #1008748=note: print w/replies, xml ) Need Help??


in reply to Re^3: file name parsing to get the original file name
in thread file name parsing to get the original file name

The check:
$path=~/.*\/(.*)$/;$name=$1; 
Doesn't take into account that the path might *not* have a directory component...
  • Comment on Re^4: file name parsing to get the original file name

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008748]
help
Chatterbox?
[LanX]: ... anyway getting a support call from food! Need to respond ... ;-)
LanX see you later

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-03-24 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (301 votes). Check out past polls.