demerphq wrote:
On 6/20/06, John Peacock <[EMAIL PROTECTED]> wrote:
As you can see, you don't even need to create a version object; it is
the version aware UNIVERSAL::VERSION which performs this magic...
Oh cool. Nice touch!
I have a patch to blead which will even make the $VERSION scalar be a
version object during the tokenization phase, without the need to call
version->new(), but until I can figure out how to do that in the CPAN
compatibility release[1], I am hesitant to add an additional special
case to bleadperl...
John
1. I think I can do it with a trampoline class, but I haven't been able
to figure out the exact mechanism that will make this work (Perl is too
smart for me and keeps eval'ing the returned object).
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5748