Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

lvalue considered harmful...

by adrianh (Chancellor)
on Dec 14, 2002 at 16:33 UTC ( [id://219867]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    bar(oranges => 18);
    print bar("bananas"), "\n";
    print bar("oranges"), "\n";
    
  2. or download this
    sub bar {
        my $key = shift;
    ...
        };
        $Bar{$key};
    };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-04-18 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found