Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

RE (tilly) 1: OO vs. procedural style

by tilly (Archbishop)
on Aug 19, 2000 at 18:35 UTC ( #28638=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub self_or_default {
        return @_ if defined($_[0]) && (!ref($_[0])) &&($_[0] eq 'CGI');
    ...
        }
        return @_;
    }
    
  2. or download this
    $handler ||= \&Err::err;
    # time passes
    do_the_right_thing() || $handler->(title=>'Oops',msg=>'something went 
    +wrong');
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2020-12-05 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?