Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: What is this doing, and why is this a good method of doing it?

by japhy (Canon)
on Jul 25, 2005 at 02:11 UTC ( #477654=note: print w/replies, xml ) Need Help??


in reply to Re: What is this doing, and why is this a good method of doing it?
in thread What is this doing, and why is this a good method of doing it?

Because at compile-time, when Perl has parsed the no strict 'refs' part, it realizes it was inside a *{...} construct, the inside of which can be a block or an expression. Since it expects it to have been an expression, the use of no raises a compile-time error. To force Perl to realize the interior is a block, the ; is added to the beginning.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-08-14 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?