Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^2: Passing regex to a subroutine

by ll001 (Initiate)
on Oct 12, 2012 at 19:47 UTC ( #998780=note: print w/replies, xml ) Need Help??

in reply to Re: Passing regex to a subroutine
in thread Passing regex to a subroutine

That's what was missing. I had created a chicken and egg situation for myself because I had not expanded it correctly. Thanks for the help. -J

Replies are listed 'Best First'.
Re^3: Passing regex to a subroutine
by mbethke (Hermit) on Oct 12, 2012 at 21:26 UTC

    Actually your problem was that you passed the regex to a command (`dir`) that didn't understand it. Doing it all in Perl makes much more sense of course, but if the suffix is significant you'll still have to integrate it into the regex.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2016-10-25 12:31 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (319 votes). Check out past polls.