Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 lurking in the Monastery: (4)
As of 2014-07-12 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls