Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Rewriting sub code on import to add logging

by gryphon (Abbot)
on May 13, 2008 at 23:00 UTC ( #686397=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub something {
        my ( $self, $param ) = @_;
        return _stuff($param);
    }
    
  2. or download this
    sub something {
        log_msg('starting sub');
        my ( $self, $param ) = @_;
        return _stuff($param);
    }
    
  3. or download this
    sub import {
        my $package_name = shift;
    ...
            }
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://686397]
Approved by pc88mxer
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2018-02-19 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (258 votes). Check out past polls.

    Notices?