use IO::File; my $fh = new IO::File("cron.log", "r") or die "Can't open 'cron.log' ($!)\n"; # Now use $fh in place of FILE ...