News for hackers. Stuff that matters.
Re:Awk vs. Perl (2009) by davidw on Tuesday June 27, 2017 @02:22PM (#14647854)
FWIW, Ruby has a lot of the same command line arguments that Perl does.
Re:Awk vs. Perl (2009) by vram22 on Tuesday July 04, 2017 @02:06PM (#14697360)
Yes, Ruby was inspired quite a bit by Perl. Matz says so somewhere, IIRC. Even it's regex support (I mean the way it is integrated into the language, unlike in Python, not that fact that Ruby supports regex per se), and some language features, are inspired by Perl. Also either or both of Lisp and Smalltalk, I've read.
Re:Awk vs. Perl (2009) by lloeki on Tuesday June 27, 2017 @05:04PM (#14649425)
Ruby does not have $_ which you happen not to see in perl one liners because of its implicit nature, and that makes those one liners very clear and terse.
Re:Awk vs. Perl (2009) by davidw on Tuesday June 27, 2017 @05:24PM (#14649589)
Ruby has $_

     seq 1 20 | ruby -pe 'puts "num is #{$_}"'
Perl is probably a bit more concise, but you can do a lot of stuff with Ruby, which is convenient if you use it for other things too.