The advice to use a module that does this probably the best but if you should for some reason find yourself unable or unwilling to use or install a module you can determine whether a file is EPS because the start of the file will match the regular expression:
/^\%!PS-Adobe-\d+.\d EPSF-\d+.\d/
/J\
In reply to Re: Eps Files and perl
by gellyfish
in thread Eps Files and perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |