Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: Ensuring forward compatibility

by eserte (Deacon)
on Apr 14, 2004 at 14:59 UTC ( [id://345079]=note: print w/replies, xml ) Need Help??


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

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".

  • Comment on Re: Re: Re: Ensuring forward compatibility

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-19 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found