Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Rewriting sub code on import to add logging

by gryphon (Abbot)
on May 13, 2008 at 23:00 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-26 00:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found