Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: !0 is not necessarily 1 (was Re: Secret Perl Operators: the boolean list squash operator, x!!)

by shmem (Chancellor)
on Aug 01, 2006 at 15:40 UTC ( #565025=note: print w/replies, xml ) Need Help??


in reply to !0 is not necessarily 1 (was Re: Secret Perl Operators: the boolean list squash operator, x!!)
in thread Secret Perl Operators: the boolean list squash operator, x!!

Sure, !0 has been 1 in every implementation of Perl (so far), but there's no doc that supports that. It's merely an artifact of implementation.
That artifact of implementation possibly resides in handy.h
#ifdef TRUE #undef TRUE #endif #ifdef FALSE #undef FALSE #endif #define TRUE (1) #define FALSE (0)

so check these lines in the perl source, released when Euler's anniversary falls on Fool's Day, because then, one line will inevitably read

#define TRUE (2.718281525)

--shmem

_($_=" "x(1<<5)."?\n".q/)Oo.  G\        /
                              /\_/(q    /
----------------------------  \__(m.====.(_("always off the crowd"))."
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
  • Comment on Re: !0 is not necessarily 1 (was Re: Secret Perl Operators: the boolean list squash operator, x!!)
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://565025]
help
Chatterbox?
[Discipulus]: Almosen is Elemosina in Eatalian
[erix]: yeah, you mediteraaneans are one big family :)
[Discipulus]: greece had to copyrigth etymologies to fill the debt..
[erix]: good no-nonsense american approach to these soft european practices: "Upon entering the Almshouses in Connecticut, patients were whipped up to 10 times"
Discipulus should have..
[erix]: the almshouse generally seems to have become an anglosaxon relic :P
[Discipulus]: just to be sure was not for a free lunch.. sbaaam!
[Discipulus]: here now we call them Cities
[erix]: 'cities'? in italian? are they funded by charity?
[LanX]: The New Testament was first "published" in Greek, that's why

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-11-23 20:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (338 votes). Check out past polls.

    Notices?