in reply to Extracting just the extension from a filename.

What about $filename=~/\.(\S+)\s/ Just a thought...

Replies are listed 'Best First'.
Re: Re: Extracting just the extension from a filename.
by krujos (Curate) on Jul 20, 2002 at 19:35 UTC
    Why the down vote? At least explain what is so horrible about my solution please.
    Thanks