Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: learning oo

by Zaxo (Archbishop)
on Aug 16, 2002 at 15:13 UTC ( #190665=note: print w/replies, xml ) Need Help??


in reply to learning oo

Calls to subs are not interpolated. cephas' solution is correct, or else either

print "The color of \$circle is: @{[$circle->getName()]}\n";
or
print "The color of \$circle is: ${\$circle->getName()}\n";
depending on whether you want list or scalar context.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2021-10-19 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (76 votes). Check out past polls.

    Notices?