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

Re: non-barewords and use strict

by sauoq (Abbot)
on Sep 16, 2002 at 20:37 UTC ( [id://198366]=note: print w/replies, xml ) Need Help??


in reply to non-barewords and use strict

When you call it with the argument list, it looks like a sub call, not a bareword and it decides that you must know what you are doing. The compiler isn't smart enough to know whether that sub will exist when that line executes. (You could eval it into existence, for example.) When you call it without the argument list, it just looks like a bareword and it doesn't assume that the bareword is actually a subroutine invocation because there is no real reason to make that assumption.

-sauoq
"My two cents aren't worth a dime.";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-23 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found