Timothy, et al --

...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
that match would change $fullpath on the left, but I also tested $fullpath
once I was done and it doesn't.  At least, I sure don't think it doesn't,
and I don't see how I could have missed it.  If it does and I have,
someone please tell me :-)

This is getting quite cool; I've stripped off the part I don't want only
if it's there and then happily split away the rest without involving
undefs or a temp var anywhere!


Thanks! & 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!

Attachment: msg25719/pgp00000.pgp
Description: PGP signature

Reply via email to