Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2020-11-28 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?