Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: A regarding glob

by arunagiri (Initiate)
on May 17, 2013 at 17:43 UTC ( #1033996=note: print w/replies, xml ) Need Help??


in reply to Re^3: A regarding glob
in thread Q regarding glob

I find the solution easier with both split and

 $element =~ m!dir1/dir2/(.*)/dir3/filename!;

Replies are listed 'Best First'.
Re^5: A regarding glob
by LanX (Chancellor) on May 17, 2013 at 17:54 UTC
    It's the same solution, just less abstract and therefore more vulnerable for typos and other errors!

    Good luck! =)

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033996]
help
Chatterbox?
[LanX]: what's strange is that the "Cowboy you said this already" message is missing #dqiwd
[LanX]: YM: BTW learn to mute your humanity
[Your Mother]: Cumin? Now I want tacos...
[Eily]: there should be an option in grep for fuzzy order of the letters in the pattern
[Eily]: as in "I might have inverted two, but my eyes misread in the some order as my fingers mistype"
[LanX]: can't find a definition for the sound

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2017-03-27 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.