Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Griping about Typing

by pdcawley (Hermit)
on Apr 19, 2002 at 06:58 UTC ( [id://160449]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Quantity;
    
    ...
      $self->new($self->{quantity + $target->{quantity},
                 $self->{unit});
    }
    
  2. or download this
      $a = Quantity->new(10, 'apple');
      $b = Quantity->new(20, 'orange');
    ...
      ...
    
      $c = $a + $b; # dies "Oi! you can't add apples to oranges!"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2024-04-23 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found