in reply to Re^2: Error opening a file
in thread Error opening a file

  1. You're not trying to open $file, you're trying to open $Datafile
  2. $Datafile is not a file
  3. only 2 argument open can executes programs, see perlipc
  4. Its easier to use one of IPC::System::Simple/IPC::Open2/IPC::Open3...

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.