in reply to filetype extension query

Assuming they supply an accurate name:

$filename = "/foo/bar/myfile.txt"; ($ext) = $filename =~ m/\.(\w+)$/; print $ext;

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print