Re: foreach routine

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu