Re:Given/when - The Perl switch statement
by marcusramberg on Sunday January 23, 2011 @12:24PM
(#2132823)
Most of us draw the line around 5.8.6 or so, given that all major distributions include a Perl at least that new. In fact most of them are at 5.10+ now, with a few notable exceptions.
[ Parent
| on HN ]
Re:Given/when - The Perl switch statement
by jrockway on Sunday January 23, 2011 @05:10PM
(#2133479)
Really? Even 5.8.8 has some major bugs.
I would only aim to support 5.8.9, 5.10.1, and 5.12.2, and at this point I don't know of anyone still using 5.8, so I just stick with the two most modern versions.
When 5.14 is released, it will really be time to kiss 5.8 goodbye.
I don't like it when my CPAN tests fail - and there are some test rigs out there running on 5.6. In practice, this has actually only resulted in my rewriting code once in a part of a module that is standard in 5.8 but wasn't earlier (one of the Tie modules, I think), but still. Using a whole new control structure isn't something I'll be doing soon, no matter how attractive it is.
Re:Given/when - The Perl switch statement
by chromatic on Sunday January 23, 2011 @07:41PM
(#2133800)
I don't like it when my CPAN tests fail - and there are some test rigs out there running on 5.6.
Anyone who hasn't upgraded Perl 5 in eight and a half years seems unlikely to install new software.
Re:Given/when - The Perl switch statement
by jrockway on Sunday January 23, 2011 @05:08PM
(#2133476)
Put "use 5.010" in your Makefile.PL and you won't see the failures from older Perl installs.
Yes, because they won't be running there. Maybe you like to target one version back, but there's a lot of systems out there running old Perls, and I don't see why I shouldn't be writing for the largest audience possible.
Re:Given/when - The Perl switch statement
by jrockway on Sunday January 23, 2011 @06:19PM
(#2133626)
I don't see why I shouldn't be writing for the largest audience possible
Could your audience also be limited by the fact that your modules are IRC bots and bindings to XML parsers that already have bindings? :)