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

Overloaded operators calling similar functions...

by dbuckhal (Monk)
on Dec 08, 2012 at 01:30 UTC ( #1007841=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ### Overloaded addition operator
    sub _add {
    ...
              : "0";
        return $diff_str;
    }
    
  2. or download this
    #!/usr/bin/perl
    
    ...
        return $x;
    }
    1;  # for whenever I make this a separate package file
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2015-05-27 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (546 votes), past polls