>>> The name of the top-level Ruby program being executed.
>>> Typically this will be the program's filename.
>>> by the ps(1) command.
>>> think $0 is following the principal of least surprise.
$PROGRAM_NAME instead of $0, and MatchData#captures for $1 to $n.