From: Mike Steiner Date: 2007-04-21T00:39:17+09:00 Subject: converting Python to Ruby - question about main() ------=_Part_53835_13743632.1177083555546 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Some Python programs have a couple lines of code like this: if __main__ == "__main__" main() I think it's supposed to call the main function if the script is executed directly. Is there an equivalent in Ruby? Or is it even necessary in Ruby? (I'm new to Ruby, so excuse me if this is a stupid question.) Mike Steiner ------=_Part_53835_13743632.1177083555546--