←back to thread

Perl's decline was cultural

(www.beatworm.co.uk)
393 points todsacerdoti | 1 comments | | HN request time: 0.194s | source
Show context
mmastrac ◴[] No.46175303[source]
In fairness, Perl died because it was just not a good language compared to others that popped up after its peak. Sometimes people just move to the better option.
replies(8): >>46175334 #>>46175346 #>>46175376 #>>46175394 #>>46175434 #>>46176859 #>>46178016 #>>46188747 #
atherton94027 ◴[] No.46175376[source]
There was so much complexity hidden behind "do what I mean". For example, scalar vs array context which was super subtle:

  my @var = @array  # copy the array
  my $var = @array  # return the count of elements in array
replies(6): >>46175433 #>>46175735 #>>46175847 #>>46175852 #>>46176259 #>>46177779 #
js2 ◴[] No.46175433[source]
Or even worse:

  my($f) = `fortune`; # assigns first line of output to $f.
  my $f = `fortune`; # assign all output to $f.
Which allegedly got a HS kid in hot water[^1].

[^1]: "It's all about context" (2001): https://archive.ph/IB2kR (http://www.stonehenge.com/merlyn/UnixReview/col38.html)

replies(2): >>46175898 #>>46176029 #
1. weare138 ◴[] No.46175898[source]
Then don't use the low level interfaces. In Perl, language features are plug and play. Everything's in a module. Use the core module List::Util instead.