Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: dir / file split

by sanPerl (Friar)
on Sep 29, 2007 at 17:35 UTC ( #641711=note: print w/ replies, xml ) Need Help??


in reply to dir / file split

You script seems ok to me. Just a suggestion

$file_path =~ /(.*)\/(.+)/; my ($dir, $file) = ($1, $2);
This will ensure that you are always hitting with the file name so any string like /foo/bar/abc/ would be ignored.


Comment on Re: dir / file split
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2015-07-02 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (46 votes), past polls