You need a heuristic, which as Dominus puts it "is a fancy way of saying that it doesn't work".
File::MimeInfo::Magic might do what you want.
In reply to Re: opening a file for printing
by gaal
in thread opening a file for printing
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |