http://www.perlmonks.org?node_id=1033934


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

> Sorry if I didn't mention it clearly.

Sorry still not clear! (And unfortunately you didn't update your posts with code-tags either).

2 possibilities:

HTH! =)

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^4: A regarding glob
by arunagiri (Initiate) on May 17, 2013 at 17:43 UTC

    I find the solution easier with both split and

     $element =~ m!dir1/dir2/(.*)/dir3/filename!;
      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)

Re^4: A regarding glob
by arunagiri (Initiate) on May 17, 2013 at 17:44 UTC
    Thanks for your time.