3 ms·
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.
by lloeki 9y ago
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.
- davidw 9y agoRuby 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.