From: MonkeeSage Date: 2007-12-05T02:50:05+09:00 Subject: Re: Ruby idiom equivalent to Perl "$asdf = $ARGV[0] || die 'arg required'"? On Dec 4, 11:30 am, James Edward Gray II wrote: > On Dec 4, 2007, at 11:08 AM, MonkeeSage wrote: > > > raise/fail don't have perl compatibility...they print nasty stuff > > about errors and what-not. In perl, "die" just prints a message and > > dies (how suprising). If you really want something equiv. to the perl, > > you'll have to write your own #die or do something more extensive. > > $ qri Kernel#abort > ----------------------------------------------------------- Kernel#abort > abort > Kernel::abort > Process::abort > ------------------------------------------------------------------------ > Terminate execution immediately, effectively by calling > Kernel.exit(1). If msg is given, it is written to STDERR prior to > terminating. > > James Edward Gray II I stand corrected. :) Regards, Jordan