Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

(jeffa) Re: How do you avoid "Code Burnout"?

by jeffa (Bishop)
on Jun 30, 2003 at 22:14 UTC ( #270345=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Old;
    
    ...
    sub page3 { "CGI.pm page3" }
    
    1;
    
  2. or download this
    package New;
    
    ...
    sub page2 { "H::T page2" }       # page 2 was easier than 1 ;)
    
    1;
    
  3. or download this
    package Interface;
    
    ...
    sub page3 { return Old->new()->page3 }
    
    1;
    
  4. or download this
    use strict;
    use warnings;
    ...
    my $obj = Interface->new;
    
    print $_,$/ for map $obj->$_, qw(index page1 page2 page3);
    
  5. or download this
    package Interface;
    
    ...
    sub DESTROY {}  # good practice - prevents unecessary call to AUTOLOAD
    
    1;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://270345]
help
Chatterbox?
[holli]: at least for cars, if the ai works better than a human on average, by all means let the machines drive
[shmem]: holli: all of our machinery is more perfect in its realm than any human being in theirs (Günther Anders), which doesn't mean not having fun, albeit dangerous sometimes.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (14)
As of 2017-11-21 13:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (301 votes). Check out past polls.

    Notices?