Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: '+' to +

by ihb (Deacon)
on May 29, 2005 at 16:37 UTC ( #461535=note: print w/replies, xml ) Need Help??


in reply to Re: '+' to +
in thread '+' to +

Like I did it in Re: Re: How to do that with eval ?:

my %arith = map { $_ => eval sprintf 'sub { $_[0] %s $_[1] }', $_ } qw[ + - * / ];

ihb

See perltoc if you don't know which perldoc to read!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2020-10-30 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (284 votes). Check out past polls.

    Notices?