Timothy, et al -- ...and then David T-G said... % % ...and then Timothy Johnson said... % % % % I can't test this where I am right now, but would something like this work? % % % % @working = split /\//,($fullpath =~ m|/mp3/(.+)|); #changed match delimiter % % I'm surprised to find that it does, but I'm glad I tested it. I thought
Darn it; I didn't test enough stuff. Given the code @working = split("/",substr($fullpath,5)); # @working = split(/\//,($fullpath =~ m:/mp3/(.+):)); print "FULLPATH IS .$fullpath.\n"; ### print "WORKING IS .@working.\n"; ### exit 0; ### running the script this way gives me FULLPATH IS ./mp3/100.Masterpieces/Vol.1/01.BACH.Toccata.in.D.minor.mp3. WORKING IS .100.Masterpieces Vol.1 01.BACH.Toccata.in.D.minor.mp3. but swapping to the match line gives me FULLPATH IS ./mp3/100.Masterpieces/Vol.1/01.BACH.Toccata.in.D.minor.mp3. WORKING IS .1. because, I suppose, the match works and returns 1. Is there a way to feed that match output back to split? Good thing vim has multiple undo capability :-) Thanks anyway & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg25720/pgp00000.pgp
Description: PGP signature