Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by imp (Priest)
on Nov 27, 2006 at 23:21 UTC ( #586364=note: print w/ replies, xml ) Need Help??


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

Aye, the &subroutine; style is optional in any modern perl. I can't recall what version that changed in, but it was a fairly long time ago.


Comment on Re^5: Why am I getting "premature end of script header"? - eval { use }
Download Code
Re^6: Why am I getting "premature end of script header"? - eval { use }
by lokiloki (Beadle) on Nov 27, 2006 at 23:24 UTC
    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...
      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
Node Status?
node history
Node Type: note [id://586364]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2015-07-06 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls