At 05:16 -0800 12/18/98, Paul J. Schinder wrote: > On Fri, Dec 18, 1998 at 08:36:53AM -0400, Arved Sandstrom wrote: > } > } And I wouldn't necessarily use either a regex *or* substr; one of the >CPAN > } modules like File::Spec might be more portable if that's what you like > } (well, that's what _I_ like... :-)) > > In general you'd use File::Basename, but in this case, the regex is > probably the way to go. The reason is that File::Basename works on > paths as used in the native file system, which URL's aren't except > under Unix (the protestations in the RFC's are not convincing). In theory, File::PathConvert is supposed to understand URLs... In practice I haven't made this work under MacPerl yet (but I've only spent 5 minutes trying...) In the expectation that someone else on this list will get it to work in another 5 minutes... ftp://ftp.ou.edu/mirrors/CPAN//modules/by-module/File/ - Vicki --- Vicki Brown <vlb@cfcl.com> |\ _,,,---,,_ Journeyman Sourceror ZZZzz /,`.-'`' -. ;-;;,_ Scripts & Philtres |,4- ) )-,_. ,\ ( `'-' P.O. Box 1269, San Bruno CA 94066 '---''(_/--' `-'\_) http://www.cfcl.com/~vlb http://www.ptf.com/macperl ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch