Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: RFC: Alex::Log

by Tanktalus (Canon)
on Jul 24, 2005 at 15:37 UTC ( [id://477573]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $sub = sub { ... };
    no strict 'refs';
    *{"Alex::Log::$name"} = $sub;
    
  2. or download this
    sub _doLog {
      my ($self, $lid, $pid, $msg) = @_;
    ...
                                       VALUES ( ?, ?, ? )" );
      $sth->execute( $lid, $pid, $msg );
    }
    
  3. or download this
    my $singleton;
    sub new {
    ...
    
      $singleton;
    );
    
  4. or download this
      foreach my $lev( @$levels ) {
        no strict 'refs';
    ...
          _doLog(@$lev, @_);
        };
      }
    
  5. or download this
    sub _doLog {
      my ($lid, $pid, $msg) = @_;
    ...
                                         VALUES ( ?, ?, ? )" );
      #...
    }
    
  6. or download this
    our @EXPORT_OK;
    use base 'Exporter';
    ...
      _init();
      goto \&Exporter::import;
    }
    
  7. or download this
      foreach my $lev( @$levels ) {
        push @EXPORT_OK, $lev->[1]; # set up the allowable exports
    ...
          _doLog(@$lev, @_);
        };
      }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found