On Wed, 6 Jun 2001 [EMAIL PROTECTED] wrote:
> I have no idea why this doesn't work,and it's driving me crazy!
>
> foreach $val (@files){
> print ":"; print "$val\n";
> open "<$val", IN || die "cant open $val for input\n";
Change this to
open IN, "<$val" or die "Can't open $val for input: $!\n";
You have the arguments to open backwards, and if you want to use ||, you
should us parentheses to make sure the boolean logic of the statement is
correct (|| and 'or' are not equivalent -- there was a big thread on it
yesterday).
-- Brett
Brett W. McCoy
Software Engineer
Broadsoft, Inc.
240-364-5225
[EMAIL PROTECTED]