[Module-build-general] Re: Module::Build and crufty perl
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2003-02-25 17:48:40
|
On Tuesday, February 25, 2003, at 04:47 AM, Randy J. Ray wrote: > I've been testing some of my modules against 5.00503 lately, and since > I've been looking at porting to Module::Build, I just tried to install > it under that version. It uses some things that aren't valid in > 5.00503, such as: > > $self->$method; # Needs explicit () between $method and ; > > open($fh, ...) # Where $fh is undef. This is why I was testing > 5.00503 > > You may not want to keep compatibility that far back (I wouldn't, but > I've had requests for help from more than one person). If not, you > might consider setting a Perl baseline with "require 5.6.0" or > something. > > Randy > -- > """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" > """""""" > Randy J. Ray Campbell, CA http://www.rjray.org > rj...@bl... > > Silicon Valley Scale Modelers: http://www.svsm.org Hi Randy, To preserve my sanity, and because I wanted to use some 5.006 features, I did explicitly set a prerequisite of 5.6 (see the "perl => '5.6.0'," in the Build.PL file). I could be convinced to backport it, or rather to accept a backporting patch, but I'd definitely need to keep things like qr{}, so I couldn't really go back any further than 5.005_03. That said, I can certainly change the $self->$method thing, I'm a little surprised I left out the parens there. The undef $fh thing is a little more of a pain, but if that's the only obstacle left I suppose I could change it too. I suppose I should also put a BEGIN{require 5.006} in too - I'm trying to remember why I didn't do that, and I can't remember, so I guess I'll do it. ;-) Now that I think of it, my original goal was to make M::B work with just the *modules* that are in the 5.6.0 core (which is still the case for the "required" modules, but some non-core modules are "recommended"), not necessarily to force people to have 5.6 as a prereq. Either way, I'm interested in knowing how far away 5.005_03 support would be. Thanks for checking into this. -Ken |