Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Do you know where your variables are?
 
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: (4)
As of 2014-04-20 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (487 votes), past polls