Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by jeffa (Chancellor)
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-07-05 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls