News for hackers. Stuff that matters.
Re:Given/when - The Perl switch statement by Vivtek on Sunday January 23, 2011 @11:19AM (#2132646)
What is this, National Perl Appreciation Day or something? This is great!

Useless in practice for me; I write for CPAN, so I have to stay backward-compatible at least to 5.6. But a nice taste of what I'll start doing in 2015 or so.

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

Re:Given/when - The Perl switch statement by Vivtek on Sunday January 23, 2011 @01:38PM (#2132995)
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.
Re:Given/when - The Perl switch statement by Vivtek on Sunday January 23, 2011 @05:55PM (#2133563)
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? :)

Re:Given/when - The Perl switch statement by Vivtek on Sunday January 23, 2011 @06:56PM (#2133709)
Oh, snap, I guess you win that argument.
Re:Given/when - The Perl switch statement by jrockway on Sunday January 23, 2011 @05:08PM (#2133473)
What? Nobody that uses 5.6 also knows about the CPAN.

I would draw the line at 5.10 for "serious production stuff" and 5.12 for anything else. If you can't use the second oldest version, you can write your own code.