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

Re^2: Near-free function currying in Perl

by tmoertel (Chaplain)
on Nov 17, 2004 at 14:06 UTC ( #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
Node Status?
node history
Node Type: note [id://408409]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2020-12-03 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (53 votes). Check out past polls.

    Notices?