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

Re: Re: Ensuring forward compatibility

by Theo (Priest)
on Apr 14, 2004 at 14:21 UTC ( #345068=note: print w/ replies, xml ) Need Help??


in reply to Re: Ensuring forward compatibility
in thread Ensuring forward compatibility

Please tell a perl novice why this is so.

-Theo-
(so many nodes and so little time ... )


Comment on Re: Re: Ensuring forward compatibility
Re: Re: Re: Ensuring forward compatibility
by eserte (Deacon) on Apr 14, 2004 at 14:59 UTC
    Apache::Registry automatically puts every script in its own namespace, something like Apache::ROOT$script_name. This is so to avoid name clashes in global variables and subroutines, because every Apache::Registry script is running in the same perl interpreter. Putting a "package main" on top of such a script would make the special namespace void and thus name clashes would be possible.

    As a workaround, one could use "package my_distinct_script_name" instead of "package main".

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-10-25 21:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (149 votes), past polls