in reply to Error executing

If you don't want to, there is no need for File::stat, you can the plain stat() function and get parameters that you want via list slice. See below for examples. Using Perl Stat

The core stat function takes a $filepath, not a FILEHANDLE. my $mtime = (stat($filepath)[10] for example. The OO module File::stat works fine too.

Replies are listed 'Best First'.
Re^2: Error executing
by Nathan_84 (Acolyte) on May 16, 2010 at 09:04 UTC
    Thank you Marshall for the tip. I shall give that a go.