Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Data Extraction Question

by Gilimanjaro (Hermit)
on Aug 03, 2004 at 14:30 UTC ( [id://379656]=note: print w/replies, xml ) Need Help??


in reply to Data Extraction Question

If you may need the filename later on:
my ($directory) = $fullpath =~ m|^(.*/)?|;
This will slurp as much as it can, as long as it's followed by a slash. $directory will be undefined if there isn't one in there... Or
my ($directory) = $fullpath =~ m|^(?:(.*)/)?|;
if you don't like the trailing slash on the path...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-20 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found