Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Rewriting sub code on import to add logging

by snoopy (Curate)
on May 14, 2008 at 01:12 UTC ( [id://686422]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings; use strict;
    ...
    
    my ($result) = something(qw/foo bar/);
    print "result: $result\n";
    
  2. or download this
    installing log handler for main::something at log.pl line 13.
    BEGIN sub block...main::something
    ...
    END sub block...main::something
    
    result: 42
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://686422]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-25 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found