Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Near-free function currying in Perl

by tmoertel (Chaplain)
on Nov 17, 2004 at 14:06 UTC ( [id://408409]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        sub { log_to_handle( *STDERR, "app-server", @_ ) }
    
        curry( \&log_to_handle, *STDERR, "app-server" )
    
        log_to_handle_c( *STDERR, "app-server" );
    
  2. or download this
         #!/usr/bin/perl
    
    ...
         my $appserver = AppServer->new(
             logger => log_to_handle_c( *STDERR, "app server" )
         );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (None)
    As of 2024-04-25 01:03 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found