Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: say variable in Class

by mr_ron (Chaplain)
on Jun 02, 2018 at 17:34 UTC ( [id://1215750]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    class A {
        has Str $.x ;
    ...
    }
    
    A.new(x =>'hello').test;
    
  2. or download this
    class A {
        has Str $.x ;
    ...
    }
    
    A.new;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found