Hi,
While uploading a file my $type outputs as "audio/mpeg"
What's the simplest way to extract just the extension (in this case mpeg)?

I thought to do this:
($not_needed,$extension) = split;

But can
$type = $info->{'Content-Type'}
output something in other formats with more elements? (e.g. audio/something/mpeg) Or is it always in the format type/file_extansion? (e.g. audio/type)

Thanks
M

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


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

Reply via email to