4 ms·
>Perl is really powerful, 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.
by danssig 15y ago
>Perl is really powerful,
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.
- sciurus 15y agoIt'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. http://search.cpan.org/~flora/perl/lib/feature.pm http://search.cpan.org/~flora/perl/lib/feature.pm
- Mithaldu 15y agoWhen 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: http://www.youtube.com/watch?v=yJss-l2XuV8 http://www.youtube.com/watch?v=yJss-l2XuV8