Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: non-barewords and use strict

by japhy (Canon)
on Sep 16, 2002 at 20:35 UTC ( [id://198365]=note: print w/replies, xml ) Need Help??


in reply to non-barewords and use strict

You're asking "how can I detect misspelled function names?", correct? Well, there's no easy way. As for why Perl doesn't do it automatically, that's because Perl lets you define functions at run-time, with eval() or AUTOLOAD().
eval 'sub foo { print @_ }'; # edited foo(123);
Edited, thanks to lestrrat.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 18:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found