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 to: > 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 function > > > I am using the following statement to open a document. > > open("..\..\workflow.txt", "Workflow")|| die "Cannot open Workflow $!\n"; > > 1. the perl.exe resides in e:\perl\bin\perl.exe > 2. the workflow.txt reside is e: > 3. the error I am getting is "Cannot open workflow No Such file or > directory" > > What am I doing wrong. > > I have tried to place them in the same directory structure and just use > open(workfloe.txt) but receive the same errors. > > -- [Writing CGI Applications with Perl - http://perlcgi-book.com] There's a pizza place near where I live that sells only slices. in the back you can see a guy tossing a triangle in the air. -- Steven Wright -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]