2 ms·
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 i
by davidw 9y ago
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.