From: Steve Klabnik Date: 2012-02-09T02:26:14+09:00 Subject: Re: Using _ like in Scala? Ruby has Perl's $_, but only in certain contexts: $ echo "foo" | ruby -pe 'next unless $_ =~ /(foo|bar|baz)/' foo $ For example. I'm not sure when it's valid, as this perl-ism isn't: 1.9.2p290 :001 > fruits = %w( apple banana orange ) => ["apple", "banana", "orange"] 1.9.2p290 :002 > fruits.each { puts $_ } => ["apple", "banana", "orange"]