Re: OT: Another perl question

2004-01-18 Thread Chris Pressey
On Sun, 18 Jan 2004 15:55:42 -0800 Gary Kline <[EMAIL PROTECTED]> wrote: > > Is there an easy way of determining "file - determine file type" > in perl? at least as certain as magic(5) can ascertain? > > E.g: > > if (($ftype = file ($ARV[i])) eq "script){ >

OT: Another perl question

2004-01-18 Thread Gary Kline
Is there an easy way of determining "file - determine file type" in perl? at least as certain as magic(5) can ascertain? E.g: if (($ftype = file ($ARV[i])) eq "script){ ## do abc; } else if ($ftype eq "Mail"){