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

Re: Forcing Compile Time Checking That Subs Exist

by japhy (Canon)
on Jun 04, 2001 at 23:09 UTC ( #85558=note: print w/ replies, xml ) Need Help??


in reply to Forcing Compile Time Checking That Subs Exist

Call the function without parens. When you use the module, the functions get defined at compile-time.

japhy -- Perl and Regex Hacker
  • Comment on Re: Forcing Compile Time Checking That Subs Exist

Replies are listed 'Best First'.
Re: Re: Forcing Compile Time Checking That Subs Exist
by sierrathedog04 (Hermit) on Jun 04, 2001 at 23:40 UTC
    Removing the parentheses when calling "referrer()" instead of the properly (for CGI.pm) spelled referer() seems to have no effect. Perl only catches the error at runtime.

      japhy's suggestion only works if you are importing the functions from CGI and not using the OO interface.

              - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2016-07-24 05:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (221 votes). Check out past polls.