Try this:
(my $dir = $0) =~ s/([^\\]+\\([^\\]+\\)?)?.*$SC/$1/;In reply to Re: Perl match to cut off after second occurrence
by thenaz
in thread Perl match to cut off after second occurrence
by shadowfox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |