Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

AUTOLOAD, overload, and Roman numerals for Perl

by ferreira (Chaplain)
on Jun 29, 2007 at 15:04 UTC ( #624100=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        use Acme::Roman;
    
        print I + II; # III, as expected
    
  2. or download this
        use Acme::Roman;
    
        print I() + II(); # III
    
  3. or download this
        $ perl -w -Ilib -MAcme::Roman -e 'my $x = I+II'
        Argument "II" isn't numeric in addition (+) at -e line 1.
        Argument "I" isn't numeric in addition (+) at -e line 1.
    
  4. or download this
        $ perl -w -Ilib -MAcme::Roman -e 'print I+II'
        Name "main::I" used only once: possible typo at -e line 1.
        print() on unopened filehandle I at -e line 1.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2020-12-02 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (26 votes). Check out past polls.

    Notices?