Stuart Clark wrote:
> 
> Hi all,
> 
> I am putting together a script on windows.
> 
> It uses filehandles.
> 
> The problem is that for some reason it dosen't like the path and won't create the 
>folders and/or file.
> 
> Regards
> Stuart Clark
> 
> $OutFile = "c:\\invoices\\current\\sales";
> 
> open (OUTSALES,">$OutFile") || die "could not create $OutFile";
> 
> ##Blah Blah rest of script##
> 
> The error is : could not create c:\invoices\current\sales


Include the $! and/or $^E variables in your error message to find out
_why_ the error occured.

open OUTSALES, ">$OutFile" or die "could not create $OutFile\n  $!\n 
$^E";


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to