in reply to filenames from filehandles

I'd rather check the MIME type of the file with File::MMagic or similar to decide whether it's an archive. Filenames come from the client so I distrust them.

Your subclass looks reasonable if you can trust the client, though.

Replies are listed 'Best First'.
Re^2: filenames from filehandles
by CassJ (Sexton) on Jun 24, 2004 at 11:28 UTC
    That is EXACTLY what I've been looking for!

    Thanks for your help guys

    Cass xx