>> 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.

Maybe I just always felt that if you use modules, you lose portability and
the purity of the language.  Is that true?  or not?  If a module is in the
core distribution, why doesn't it get incorporated into the language itself?

- B


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to