Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Indirect Object Syntax

by choroba (Cardinal)
on Nov 06, 2021 at 20:48 UTC ( [id://11138528]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    
    say 'MyObj'->new('obj1')->string;
    say new MyObj('obj2')->string;
    
  2. or download this
    obj1
    obj2
    
  3. or download this
    obj1
    Undefined subroutine &main::MyObj called at ... line 9.
    

Log In?
Username:
Password:

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

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

    No recent polls found