Re: foreach routine
- Posted by duke normandin <dnormandin at bsdrocksperlrolls.com> Dec 22, 2006
- 670 views
don cole wrote: > > > Hi and welcome to Euphoria Duke, > > I don't know anything about Perl, C, other languages etc... > > > > > > Coming from Perl, I'm trying to emulate the following: > > > > > > read(STDIN, $buffer, $ENV{CONTENT_LENGTH}); > > > @pairs = split(/&/, $buffer); > > > foreach $pair (@pairs){ > > > ($name, $value) = split(/=/, $pair); > > > blah > > > blah > > > } > > > }}} <eucode> > > include strlist.e > -- I put this in my stock include files (that come with Euphoria setup), > -- even though you must download it separtly (in the acrchives). > > list=split(line,'/') --this will make a lot of little sequences out of one > big one. I might have to hunt you down like a dog and buy you a cup of coffee (or something) ;) Thanks! -- duke