Perl far from dead, more popular than you think (Royal Pingdom)
Posted Nov 6, 2009 22:31 UTC (Fri) by
stijn (subscriber, #570)
In reply to:
Perl far from dead, more popular than you think (Royal Pingdom) by rfunk
Parent article:
Perl far from dead, more popular than you think (Royal Pingdom)
Let's try a different and for me more realistic scenario.
Perl:
my %dataframe = ();
while (<>) {
my @F = split;
push @{$dataframe{$F[0]}{$F[1]}}, { foo => $F[2], bar => $F[3] };
}
Ruby: ?
This uses Perl's
autovivification features. They are not always suitable but a great feature nonetheless. If Ruby
has something as succinct I will definitely start using it. I am not arguing that this particular
feature places Perl above another language. But it's a feature I find very useful. That aside, Perl is
a tool, and not a bad tool at all. I am a bit wary of perl6 though. Perhaps the offfshoots will be
worthwhile (Parrot) but the language itself seems just to have too much syntax.
(
Log in to post comments)