in reply to Re^2: Dealing with split
in thread Dealing with split
I think you'd be better of using runrig's snippet at Re: Dealing with split, though.# match any file extension print map {"$_\n" if s/c:\\temp(.*?\.(?:\w|\d)+?)/$1/} split(/\s+|\@+/ +,$str); # match only a few extensions print map {"$_\n" if s/c:\\temp(.*?\.(?:c|xml|java|etc))/$1/} split(/\ +s+|\@+/,$str);
|
|---|