News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.