From: Jeff Pritchard Date: 2006-06-07T11:22:00+09:00 Subject: Re: can I keep re-running the same script? how? Not to be contrarian, but pickaxe page 180 says that ARGV[0] is not the name of the program (unlike in C). There's other stuff I don't get about your snippet as well. Why ["ruby" + ARGV]???? Seems like you're using + to add an array to a string? Can you explain it for us newbies? Working from Pickaxe page 180 I would have come up with something like: sleep 180 # obvious pieces = [ruby, $0].concat(ARGV) # $0 is program name exec pieces.join(' ') # to string and execute it BTW, many rubyist's would, I think, stick the .join(' ') on the end of the array composition, like this: exec [ruby, $0].concat(ARGV).join(' ') Is there a move away from such Perlish pursuits, or are you still considered a "Sheila" if you split things like this up into more easily understandable pieces? thanks, jp unknown wrote: > On Wed, 7 Jun 2006, Hunter Walker wrote: > >> >> -- >> Posted via http://www.ruby-forum.com/. > > > sleep 180 > exec ["ruby" + ARGV].join(' ') > > -a -- Posted via http://www.ruby-forum.com/.