Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Indirect Object Syntax

by bliako (Monsignor)
on Nov 09, 2021 at 09:26 UTC ( #11138600=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {   package MyObj;
        sub retro { bless { name => $_[1] }, $_[0] }
    ...
    
    my $obj = MyObj->retro("aghag");
    my $obj2 = retro MyObj("aaa"); # with the usual caveats
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2022-05-22 02:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (78 votes). Check out past polls.

    Notices?