Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

RE: RE: Postfix, whole-object dereference operators

by tye (Cardinal)
on Jul 21, 2000 at 19:53 UTC ( #23602=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $obj->Method()->{key}->@[3,7];
        $obj->Method()->{lock}->@{"open","close"};
    
  2. or download this
        @{$obj->Method()->{key}}[3,7];
        %{$obj->Method()->{lock}}{"open","close"};
    
  3. or download this
        ${${$obj->Method()}{key}}[0];
    
  4. or download this
        $obj->Method()->{key}->[0];
        $obj->Method(){key}[0];
    
  5. or download this
        $obj->Method()->{key}->[1];    # One element.
        $obj->Method()->{key}->@[1,2]; # Two elements.
    
  6. or download this
        $data->@{qw(this that other)}->>@[3,7]->>Method();
    
  7. or download this
        my @ret;
        for( %{$data}{qw(this that other)} ) {
    ...
            }
        }
        return @ret;
    
  8. or download this
        SavePartnSizes( $info->{Disks}->@->>{Partition}
            ->>@->>@{"Label","SizeMB"} );
    ...
            }
        }
        SavePartnSizes( @partns, @partnSize{@partns} );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-09-23 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls