Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: If I *had* to pick, I'd pick:

by tommyw (Hermit)
on Sep 09, 2002 at 11:44 UTC ( #196215=note: print w/replies, xml ) Need Help??


in reply to If I *had* to pick, I'd pick:

#!/usr/bin/perl 0;

MMM... fast, simple, beautiful.

Almost certainly wrong.

--
Tommy
Too stupid to live.
Too stubborn to die.

Replies are listed 'Best First'.
Re: Re: If I *had* to pick, I'd pick:
by jepri (Parson) on Sep 13, 2002 at 03:24 UTC
    Except that under the common UNIX convention, a returned zero is TRUE, and any other result is false. This comes from C coders setting bit flags to indicate the error (so anything > 0 indicates a error flag has been set).

    Larry Wall was a bit of a rebel when he selected zero as false. It is a constant gripe of C programmers converting to perl: "Your error return values are the other way around, and that confuses my tiny, C programming brain".

    Note: I've been programming too long - I almost added a \n so that sentence looked like: "...C programming brain\n". Somebody help me!

    ____________________
    Jeremy
    I didn't believe in evil until I dated it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://196215]
help
Chatterbox?
[Tux]: choroba++ # pm_cb_g also signals replies to posts, something#cbstream does not
[marto]: good afternoon all
[marto]: that is a neat feature, I'll have to have a look at how it displays that
[Tux]: 14:32 Europe/Amsterdam, so good afternoon to you :)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-09-22 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (262 votes). Check out past polls.

    Notices?