Re: use Tk & use Hash::NoVivify
Ala Qumsieh <[email protected]> Mon, 30 Jul 2007 11:14:55 -0700 (PDT)
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <[email protected]> |
--- listmail <[email protected]> wrote: > #is this redefining Tk::Exists which was has been > exported as main::exists? If you meant main::Exists, then your sentence would be true, I think. > #if so, should I be doing something different so > that > #"use Hash::NoVivify" will not redefine Tk::Exists? I never used Hash::NoVivify, and didn't test my suggestions, but here it goes: You can prevent it from exporting Exists() to the main package like so: use Hash::NoVivify (); then you'll have to fully qualify Hash::NoVivify::Exists() to use it. Alternatively, if you're too lazy to type the whole thing all the time, you can alias it to another function in the main:: namespace: *main::novExists = \&Hash::NoVivify::Exists; and now you can use novExists() directly. Now, much of Hash::Novivify is written in xs, and I don't have too much experience with xs, so I'm not 100% certain that this will work. --Ala ____________________________________________________________________________________ Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php --++**==--++**==--++**==--++**==--++**==--++**==--++**== ptk mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/ptk