Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

RE: RE: RE: mybooks.pl (or or )

by BlueLines (Hermit)
on Aug 11, 2000 at 04:06 UTC ( #27422=note: print w/replies, xml ) Need Help??


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")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://27422]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2022-05-28 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (99 votes). Check out past polls.

    Notices?