Feature #10123
Updated by nobu (Nobuyoshi Nakada) about 10 years ago
Broken when using `~`: ~~~ $ echo ' josh' | ruby -ne '~/(?<initial>\w)/ and puts initial' -e:1:in `<main>': undefined local variable or method `initial' for main:Object (NameError) ~~~ Working when using `=~ $_`: ~~~ $ echo ' josh' | ruby -ne '/(?<initial>\w)/ =~ $_ and puts initial' j ~~~