From: Daniel Carrera Date: 2003-01-29T09:21:22+09:00 Subject: Re: program name -> perl's $0 I don't know of any such list. The best I can find is this (probably incomplete) list from the ruby source: $$: pid $?: last status $!: error string $/: input record separator $\: output record separator $;: field separator $,: output field separator $.: last read line number $=: ignorecase $:: load path $<: reading filename $>: default output handle $": already loaded files Since most, if not all, are copied from Perl, we can probably look at the Perl list. On Wed, Jan 29, 2003 at 09:03:47AM +0900, Daniel Bretoi wrote: > Gah, I keep shooting myself in the foot when trying to use it in quotes, > thats my problem. it should ofcourse be #{$0} then. anyway, a complete > list of such variables, or a link to a page containg them would still be > nice. > > db > > On Wed, Jan 29, 2003 at 08:55:02AM +0900, Daniel Carrera wrote: > > > > $ cat >example.rb > > puts $0 > > $ ruby example.rb > > example.rb > > > > On Wed, Jan 29, 2003 at 08:50:59AM +0900, Daniel Bretoi wrote: > > > Anyone have a reference to all the special variable names? In particular > > > the perl equiv of $0, the program name? > > > > > > db > > > > > > -- > > > Jan 28 First ski tow, Woodstock VT, 1914 > > > Jan 28 Space Shuttle Challenger (51-L) explodes 74 seconds after liftoff > > > killing Scobee, Smith, McNair, Resnick, Jarvis, Onizuka and McAuliffe, > > > 1986 > > > Jan 28 Jimi Hendrix headlines Madison Square Garden, 1970 > > > Jan 28* Tu bi-Shevat > > > > > > > -- > > Daniel Carrera > > Graduate Teaching Assistant. Math Dept. > > University of Maryland. (301) 405-5137 > > -- > Jan 28 First ski tow, Woodstock VT, 1914 > Jan 28 Space Shuttle Challenger (51-L) explodes 74 seconds after liftoff > killing Scobee, Smith, McNair, Resnick, Jarvis, Onizuka and McAuliffe, > 1986 > Jan 28 Jimi Hendrix headlines Madison Square Garden, 1970 > Jan 28* Tu bi-Shevat > -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137