Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: C and other stuff

by tobyink (Canon)
on Jan 12, 2014 at 19:08 UTC ( [id://1070349]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $x = 42;
    assert '$x > 40';   # assertion fails,
                        # because eval can't see $x
    
  2. or download this
    sub assert (&) {
       require Carp;
    ...
    
    my $x = 42;
    assert { $x > 40 };   # assertion ok
    
  3. or download this
    sub TRUE         () { 1 }
    sub FALSE        () { 0 }
    sub EXIT_SUCCESS () { TRUE }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found