SPUG: Change a namespace after loading?
Eric Wilhelm
scratchcomputing at gmail.com
Thu Apr 12 10:06:21 PDT 2007
# from Bill Warner
# on Wednesday 11 April 2007 04:51 pm:
>The solution: write a new version that looks identical to the clients.
>Simple enough, but I don't want to switch all clients to the new code
>simultaneously. I'd prefer to switch a few at a time. In other words,
> for some clients the old version is used, for the rest the new
> version is used.
Why does that require messing with namespaces at runtime? Is this a
single, persistent environment? Seems that {local @INC = ("newcode/",
@INC); require Module;} would do the trick in most situations.
--Eric
--
"Insert random misquote here"
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------
More information about the spug-list
mailing list