ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-tk
perl-tk
Re: use Tk & use Hash::NoVivify
by Ala Qumsieh other posts by this author
Jul 30 2007 11:18AM messages near this date
use Tk & use Hash::NoVivify | Tk on PC/ OSX
SOURCE 
--- listmail <listmail@[...].com>  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
ptk@[...].edu
https://mailman.stanford.edu/mailman/listinfo/ptk
Thread:
Listmail
Ala Qumsieh

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved