Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Rewriting sub code on import to add logging

by snoopy (Deacon)
on May 14, 2008 at 01:12 UTC ( #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
Node Status?
node history
Node Type: note [id://686422]
help
Chatterbox?
[Datz_cozee75]: hippo is fantastic at diagnosing what's missing in code.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2018-08-14 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (152 votes). Check out past polls.

    Notices?