Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: AND OR

by davidrw (Prior)
on May 14, 2006 at 14:19 UTC ( [id://549320] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    int *x;
    if(ptr != NULL && *ptr==5){ ... }
    ...
    # extended to perl:
    my $obj = Foo::Bar->new();
    if( $obj && $obj->blah() ){ ... }