Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Syntactic Confectionery Delight
 
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 about the Monastery: (14)
As of 2014-04-18 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (469 votes), past polls