Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: What the [sub]in 'L value do they have?

by Chmrr (Vicar)
on Dec 15, 2002 at 08:37 UTC ( #219978=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub set : lvalue {
      @_ == 1 ? $_[0] : set($_[0]{$_[1]},@_[2..$#_]);
    }
    
  2. or download this
    use Data::Dumper;
    sub set : lvalue {
      @_ == 1 ? $_[0] : set($_[0]{$_[1]},@_[2..$#_]);
    ...
    set($h, qw/baz troz/) = 42;
    set($h, qw/baz poit qux/) = 17;
    print Dumper($h);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2016-09-25 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (470 votes). Check out past polls.