Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2017-12-14 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (395 votes). Check out past polls.

    Notices?