Also note that the file path is relative to the script that is being run,
not where your perl executable is.
e.g.
if perl is at
e:\perl\bin\perl.exe
and your script is at
e:\scripts\myScript.cgi
and the file is
e:\workflow.txt
then the path needs to read
open("Workflow", "..\workflow.txt")
That would still not work. You are putting the cart before the horse, or
rather, the filename before the filehandle.
open(FH, "file.txt") ...
perldoc -f open
perldoc perlopentut
Cheers,
Kevin
On Mon, Dec 10, 2001 at 05:35:14PM -0600, Herbold, John W.
([EMAIL PROTECTED]) said something similar
: RE: help with open function
Why not just tell it...
open("e:\workflow.txt", "Workflow")|| die "Cannot open workflow $!\n";
John Herbold
IS Specialist/DBA
-Original Message-
From: Lance Prais [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 200
Why not just tell it...
open("e:\workflow.txt", "Workflow")|| die "Cannot open workflow $!\n";
John Herbold
IS Specialist/DBA
-Original Message-
From: Lance Prais [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 10, 2001 7:28 PM
To: [EMAIL PROTECTED]
Subject: help with open functi