Perl regular expression question help
Posted on 2003-03-24
Ok I'm new programmer to Perl and all that regular expressin stuff isn't going well with me. Basically I'm trying to understand the following 2 lines of code:
($0=~ m,(.*)/[^/]+,) && unshift (@INC, "$1");
($0=~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1");
Can someone please explain what that regular expression is comparing to? Is that m there the match keyword? Isnt the format for match m//? I'm confused! What is been put in the array @INC?