Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Not sure how to handle this scope (updated)

by haukex (Archbishop)
on Aug 18, 2021 at 18:04 UTC ( [id://11135934]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $self = OO->new( $cat );
    {
      my $inner_self = $ARGV[0] eq 'Fido' ? OO->new( $dog ) : $self;
      say $inner_self->species();
    }
    
  2. or download this
    my $self = OO->new( $ARGV[0] eq 'Fido' ? $dog : $cat );
    

Log In?
Username:
Password:

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

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

    No recent polls found