From: Daniel Bretoi Date: 2003-01-29T09:03:47+09:00 Subject: Re: program name -> perl's $0 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