> -----Original Message-----
> From: [email protected] [mailto:activeperl-
> [email protected]] On Behalf Of Ken Slater
> Sent: 28 March 2011 21:06
> To: 'Claus Kick'; [email protected]
> Subject: RE: Stupidity on my side - readdir(), chdir() ..

...

> use lexical file handles & three argument form of open
> open (FILE, "<", $list) or die "cannot open file: $^E";
>
> >open (FILE, "<".$list) or die "cannot open file";

A bit of a typo, I think. With a lexical file handle, that should look 
something like...

open my $fh, "<", $list or die ...

Also, if using "or" which has lower precedence than "||", you don't need the 
brackets.

Other than that, ++$what_he_said;

HTH


--
Brian Raven



Please consider the environment before printing this e-mail.

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient or have received this e-mail in error, please advise 
the sender immediately by reply e-mail and delete this message and any 
attachments without retaining a copy.

Any unauthorised copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to