Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Chmrr (Vicar)
on Dec 15, 2002 at 08:37 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://219978]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-12-09 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (53 votes). Check out past polls.