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

Re^3: Regex Question

by nefigah (Monk)
on Mar 10, 2008 at 16:48 UTC ( #673285=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Regex Question
in thread Regex Question

Well, I'm pretty new too, so not sure if this is the best way, but I would use the glob function as was recommended earlier, something like this:

use File::Basename; my $dir = dirname($path); $dir .= '/*'; # Note: if the result of dirname already has the slash, +you only need to add the * while (glob $dir) { # this will loop through files in that directory, putting each filen +ame in $_ }
You can check out perldoc -f glob at the command line or!

I'm a peripheral visionary... I can see into the future, but just way off to the side.

Comment on Re^3: Regex Question
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-11-30 03:54 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (757 votes), past polls