Re: :ObjScanner and pseudo-hashes

Slaven Rezic <[email protected]> 13 Sep 2007 00:49:11 +0200
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
<[email protected]> writes:

> 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 ...';
> }

I would make the version check more accurate, as 5.009something also
does not have pseudo hashes anymore.

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

I also vote for keeping the pseudo hash code for older perls.

Regards,
        Slaven

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

-- 
Slaven Rezic - slaven <at> rezic <dot> de

    tkrevdiff - graphical display of diffs between revisions (RCS, CVS or SVN)
    http://ptktools.sourceforge.net/#tkrevdiff
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk