Hi --

On Fri, 19 Aug 2005, Kroeger Simon (ext) wrote:

>
>>> What does bother me here is that there seems to be no other way than
>>> using this ugly construct. (Did I miss something?)
>>
>> Which one do you mean -- $0 or the $1 to $n ones?  You can use
>> $PROGRAM_NAME instead of $0, and MatchData#captures for $1 to $n.
>> (Note: it doesn't stop at $9 :-)
>
> ah, require "English".

You don't have to:

   $ ruby -e 'p $PROGRAM_NAME'
   "-e"


David

-- 
David A. Black
dblack / wobblini.net