From ruby-talk Tue Mar 13 10:58:54 2007 From: "Rebhan, Gilbert" Date: Tue, 13 Mar 2007 10:58:54 +0000 To: ruby-talk Subject: Re: YAML.load_file problems Message-Id: <3AE93DC078AE8A41AEDA6B95DE4EB92D25BABC () VEX00130 ! lan ! huk-coburg ! de> X-MARC-Message: https://marc.info/?l=ruby-talk&m=117391406931362 Hi Stefano, -----Original Message----- From: Stefano Crocco [mailto:stefano.crocco@alice.it] Sent: Tuesday, March 13, 2007 9:31 AM To: ruby-talk ML Subject: Re: YAML.load_file problems /* YAML.load_file returns the contents of the yaml file in a hash or an array (depending on the contents of the file, in your case is a hash). You need to store the result somewhere, like this: config=YAML.load_file('config.yaml) ... config['cvsrepos'].each{ |x| ... IO.popen("#{config['CVSEXE']} -d ... } */ works fine :-) thanks Regards, Gilbert