From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-04-11T10:46:55+09:00 Subject: Re: parsing ENV['PATH'] On Thu, 10 Apr 2003 17:46:45 +0000, Peter Ensch wrote: > What am I doing wrong here? > > ENV["PATH"].split(':').each { |i| > puts i > # do more stuff here > } > > My PATH env. variable is a long list of ':' separated > paths; however ENV['PATH'] only sees the first path. > > So, the 'split' works fine, it's the initial string I'm > splitting that is the problem. It works fine for me. Both with double/single quotes. How does you initial string looks ? in the "# do more stuff here" section, are you calling break ? -- Simon Strandgaard