On Sat, Jul 26, 2003 at 08:24:50AM -0700, Bryan Harris wrote: > Is there a generally accepted way to get the "base" of a filename, i.e. > strip off the multi-letter extension without using any modules? I've been > doing something like this: > > $fname = shift; > $fname =~ s/\.[^.]+$//; > > It feels a little hokey, though. Maybe it's just me.
Sure, that's fine -- but why don't you want to use modules? File::Basename has been in the core distribution for a long time. -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]