Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: What operator should perl5porters use for safe dereferencing?

by Jenda (Abbot)
on May 31, 2012 at 14:33 UTC ( [id://973538]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $age = do {
     my $boss = $company->boss();
     my $wife = $boss ? $boss->wife() : undef;
     $wife ? $wife->age() : undef
    };
    
  2. or download this
    my $age = $company~>boss()~>wife()~>age();
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found