Re:Perl tutorials suck (and cause serious damage)
by sciurus on Wednesday October 26, 2011 @05:06PM
(#3160416)
It's the equivalent of "use feature qw(switch say state)". "use feature" allows "new syntactic constructs, or new semantic meanings to older constructs" to be enabled in the current scope.
Re:Perl tutorials suck (and cause serious damage)
by Mithaldu on Wednesday October 26, 2011 @05:10PM
(#3160440)
When Larry left for Perl 6 everyone figured that would be it for Perl 5 and then a few years later when Perl 6 kept not being viable for more than toy use the p5p was forced to figure out ways of extending Perl 5 without breaking old code. That was one of the ideas. This is what is more current planning in that regard:
Compared to what? C? In what way is it more powerful than Ruby, Python, Ocaml, Haskell, etc.?
There are things perl has over e.g. python (lambdas) but there are at least as many things those languages have over perl (e.g. python generators built in) and all of those languages are easier to use. Look at the code you wrote there! I assume "use v5.10" is actually a forward compatibility declaration instead of a backward one, right? Really embarrassing if so.