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

Re: Unexpected behavior of function 'say'

by tobyink (Abbot)
on Mar 05, 2013 at 15:22 UTC ( #1021846=note: print w/ replies, xml ) Need Help??


in reply to Unexpected behavior of function 'say'

It's the indirect method call syntax. Your code is interpreted as:

use strict; use warnings; STDOUT->say('like a charm');

So you're not using the say keyword; you're using the say method in IO::Handle.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name


Comment on Re: Unexpected behavior of function 'say'
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2015-07-05 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls