Johnno wrote:
> many thanks that works...
>
> What i am getting is a Permission denied
>
> I can't see why here.. do i have to do a chmod 666 on the file or
> something??
>
> sub key_counter {
>
> my @countermyfile;
> my $keycounter;
>
> open(IN,"$working_folder/counter.txt");
> (@countermyf
rom: "Gary Turner" <[EMAIL PROTECTED]>
To: "'Johnno'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 01, 2002 9:34 PM
Subject: RE: [Perl-unix-users] open file etc..
>
> Hi,
>
> The error can be found in $!
>
> open(OUT,">$working_folder/co
Johnno wrote:
> open(OUT,">$working_folder/counter.txt") or die "cannot create counter
> file";
>
> how can i make it so it will tell me what the error is and don't cannot
> create counter file??
Add $! to the die message:
... or die "cannot create counter file: $!";
--
,-/- __
open(OUT,">$working_folder/counter.txt") or die "cannot create counter
file";
how can i make it so it will tell me what the error is and don't cannot
create counter file??
Many Thanks,
Johnno
___
Perl-Unix-Users mailing list
[