http://qs1969.pair.com?node_id=27422


in reply to RE: RE: mybooks.pl (or or )
in thread mybooks.pl

i'm using 5.005_03, and this is what happens when i try to use || in a naughty way:
#!/usr/bin/perl $FOO="/etc/passwd"; open FOO || die "Argh: $!\n";

results in:
nooky:~$ ./foo.pl Precedence problem: open FOO should be open(FOO) at ./foo.pl line 3.
Running with -w like a good boy produces even more useful output:
nooky:~$ ./foo.pl Precedence problem: open FOO should be open(FOO) at ./foo.pl line 3. Probable precedence problem on logical or at ./foo.pl line 3.

I have not played with 5.6 yet, but I'd be a little upset if this feature was removed....

BlueLines

Disclaimer: This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.

Replies are listed 'Best First'.
RE: RE: RE: RE: mybooks.pl (or or )
by tye (Sage) on Aug 11, 2000 at 16:59 UTC

    Ah, that only works for open. Thanks for clearing that up.

            - tye (but my friends call me "Tye")