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

Re^5: Near-free function currying in Perl

by diotalevi (Canon)
on Mar 21, 2005 at 19:10 UTC ( #441272=note: print w/replies, xml ) Need Help??


in reply to Re^4: Near-free function currying in Perl
in thread Near-free function currying in Perl

Ok, here's the BEGIN approach changed so it *does* work for you. I'm just creating a use() which has the value set for its duration. Any later calls to use() or ->import() won't reflect the suffix I set here.

BEGIN { local $AutoCurry::suffix = ...; require AutoCurry; AutoCurry->import(); }

Replies are listed 'Best First'.
Re^6: Near-free function currying in Perl
by tmoertel (Chaplain) on Mar 26, 2005 at 06:38 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering 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?