Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Why am I getting "premature end of script header"? - eval { use }

by ikegami (Patriarch)
on Nov 27, 2006 at 22:42 UTC ( #586349=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why am I getting "premature end of script header"? - eval { use }
in thread Why am I getting "premature end of script header"?

You must use parens around the arguments of a function call when the call is compiled before the function being called has been loaded.

My solution doesn't suffer from that problem. It loads the function (i.e. the module) before the call to the function is compiled.

So either add parens around the arguments for POST (and suffer from the loss of prototypes on all imported functions), or use what I already posted.

  • Comment on Re^3: Why am I getting "premature end of script header"? - eval { use }
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2022-08-14 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?