News for hackers. Stuff that matters.
Re:Perl 5.20.0 released by pflanze on Tuesday May 27, 2014 @11:56AM (#7805095)
$0 (along with $1 etc.) is used in shells, at least bash [and original sh?]. I think Perl just borrowed those, like $ prefixes to variables or not offering explicit subroutine arguments, from the traditional unix shell(s).
Re:Perl 5.20.0 released by __david__ on Tuesday May 27, 2014 @03:06PM (#7806204)
And $$, and $?. Even Perl's $#x syntax to get the max index of @x seems to come from shell's $#.

Also interesting, Ruby copied most of Perl's crazy variables [1].

[1] http://www.rubyist.net/~slagell/ruby/globalvars.html

Re:Perl 5.20.0 released by Mithaldu on Tuesday May 27, 2014 @03:09PM (#7806227)
Ruby's goal was to be Perl, but better.
Re:Perl 5.20.0 released by __david__ on Tuesday May 27, 2014 @09:40PM (#7807936)
Then they probably shouldn't have copied the crazy obscure variable stuff ;-)

(I say that as a Perl and Ruby fan)

Re:Perl 5.20.0 released by nikatwork on Tuesday May 27, 2014 @10:59PM (#7808180)
Matz admits that he might have stolen too much from Perl and got some "whale guts" over his shoes - but only a little.

From the obligatory Yegge rant: https://sites.google.com/site/steveyegge2/tour-de-babel

Re:Perl 5.20.0 released by Mithaldu on Wednesday May 28, 2014 @12:23PM (#7811101)
Linking yegge is quite pointless, since even in that little screed he demonstrates amply how he doesn't even know the basics of Perl and in fact knows so little that his judgement isn't worth the bytes that store it.
Re:Perl 5.20.0 released by duskwuff on Tuesday May 27, 2014 @05:39PM (#7807038)
From traditional UNIX shells, by way of awk. perl was originally written as a fancier version of awk (to the point that, until recently, it came with a utility "a2p" that translated awk source code to perl), so that's where it got the variables.