in reply to Deleting a File

You probably don't have permission to unlink it. Try this:
unlink( $filename ) or die "Can't unlink $filename: $!";

Replies are listed 'Best First'.
Re^2: Deleting a File
by phimtau123 (Novice) on Jun 19, 2007 at 23:53 UTC
    This is the error i get. "Can't unlink MWALARM_ETH21611B_20070530-0615560 t get_alarmfiles.pl line 42, <FILEREAD> line 1." the script and the file are in two different place. do i need some additional code?
      A reply falls below the community's threshold of quality. You may see it by logging in.