Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by lokiloki (Beadle)
on Nov 27, 2006 at 23:24 UTC ( [id://586366]=note: print w/replies, xml ) Need Help??


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

I suppose using the & was helpful to me also because it let me know when I was calling something i had personally created, versus calling a builtin function or something from another module...
  • Comment on Re^6: Why am I getting "premature end of script header"? - eval { use }

Replies are listed 'Best First'.
Re^7: Why am I getting "premature end of script header"? - eval { use }
by ikegami (Patriarch) on Nov 27, 2006 at 23:49 UTC
    Calling it with the ampersand disables the function's prototype. That's one reason to avoid using the ampersand.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found