Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2016-06-25 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (323 votes). Check out past polls.