Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Modern Perl Book "Paquito" Example Question

by Perlbotics (Archbishop)
on Oct 05, 2018 at 20:58 UTC ( [id://1223601]=note: print w/replies, xml ) Need Help??


in reply to Modern Perl Book "Paquito" Example Question

perldoc -f say

... "say" is available only if the "say" feature is enabled or if it is prefixed with "CORE::". The "say" feature is enabled automatically with a "use v5.10" (or higher) declaration in the current scope.

So you could add

use v5.10; # or higher ...
or
use feature qw(say); ...
or
$_ = 'My name is Paquito'; CORE::say if /My name is/; s/Paquito/Paquita/; tr/A-Z/a-z/; CORE::say;

Had you add use strict; the following warning would have been issued hinting that say is unknown:

Bareword "say" not allowed while "strict subs" in use at ./say.pl line + xyz.

Replies are listed 'Best First'.
Re^2: Modern Perl Book "Paquito" Example Question
by kcott (Archbishop) on Oct 08, 2018 at 06:49 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-20 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found