RE: :ObjScanner and pseudo-hashes

<[email protected]> Tue, 11 Sep 2007 17:49:05 +0200
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
Hmm, as CPAN is not perl-version specific, people using
Perl < 5.10 might be confused if the next version of
Tk::Obj* would not support pseudo-hashes any more.
Maybe a simple conditional could do the trick:

BEGIN {
  if ($] < 5.010) {
    eval 'sub ...';
  } else {
    eval 'sub ...';
}

and this way you could conditionally load the pseudo-hash
support parts or not.
Alternatively, it could be a decision done at build time
(when Makefile.PL is executed) - and you could preprocess
your code accordingly.

I think this would be less intrusive than completely dropping
pseudo-hashes. Personally, I use Tk::ObjScanner quite a lot
for debugging code that has "use fields ..." in it, which
in Perl < 5.10 relies on pseudo-hashes.

Cheers,

Marek

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dominique Dumont
Sent: Friday, September 07, 2007 3:22 PM
To: perltk-list
Cc: Jay Bonci
Subject: Tk::ObjScanner and pseudo-hashes


Hello

Pseudo-hashes do not work anymore with perl 5.10 (they were deprecated
in perl 5.8)

Since this Perl feature is obsolete, I plan to remove all pseudo-hash
support in Tk::ObjScanner [1] and Tk::ObjEditor [2] .

Is anyone bothered by this removal ?

Cheers

[1] http://search.cpan.org/~ddumont/Tk-ObjScanner-2.010/
[2]
http://search.cpan.org/author/DDUMONT/Tk-ObjEditor-2.004/ObjEditor.pm

-- 
Dominique Dumont 
"Delivering successful solutions requires giving people what they
need, not what they want." Kurt Bittner
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk