Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by phaylon (Curate)
on May 31, 2012 at 14:58 UTC ( #973541=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my $object = $other_object->get_object;
      my $result = do {
        use safederef;
        $object->possible_method;
      };
    
  2. or download this
      my $object = $other_object->get_object;
      my $result = $object ? $object->possible_method : undef;
    
  3. or download this
      my $result = $other_object?->get_object?->possible_method;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (22)
As of 2015-07-30 20:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls