You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Lukas Zapletal <lz...@bach.cz> on 2001/11/30 09:48:26 UTC

bug in documentation

Hey Gerald!

You made a small mistake in the documentation:

EMBPERL_INPUT_FUNC

EXAMPLE for an input function which does just the same as Embperl


 sub Input

    {
    my ($r, $in, $mtime) = @_ ;

    open F, $r -> filename or return NOT_FOUND ;
    local $\ = undef ;
    $$in = <F> ;
    close F ;

    $$mtime = -M $r -> filename ;
    
    return 0 ;
    }
See also ProxyInput below, for an input function which comes with Embperl. 

You used $\ as input separator. Note this is output separator. The right form
is:

local $/ = undef;

Have a nice day

ps - when will you release 1.3 bugsfixed version?

Regards

  Lukas Zapletal [lzap@bach.cz]
  web programmer
  Bach systems Ltd., Czech Republic

  ----------- PGP FINGERPRINT ------------
  4BA4ECA3EDE9608558646ABBA14259E3459FA0B4
  --------------- COOKIE -----------------
  Unix: Where /sbin/init is still Job 1.


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Multiple Form Elements

Posted by Ruben Safir <ru...@mrbrklyn.com>.
Or I can RTF docs...


Sorry for disturbing everyone :)

If multiple fields with the same name are sent to a Embperl page, they 
will put in the same hash element and separated be tabs. You can split it 
up in an array, by writting:


On 2001.12.01 22:16:20 -0500 Ruben Safir wrote:
> 
> Hello
> 
> If I have a form with multiple elements with the same name, but 
> different values, what is the resulting value in fdat?
> 
> 
> Thanks
> 
> 
> Ruben
> 
>-- 
> __________________________
> 
> Brooklyn Linux Solutions
> __________________________
> http://www.mrbrklyn.com - Consulting
> http://www.brooklynonline.com - For the love of Brooklyn
> http://www.nylxs.com - Leadership Development in Free Software
> http://www.nyfairuse.org - The foundation of Democracy
> http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and 
> articles from around the net
> http://www2.mrbrklyn.com/mp3/annie.mp3 - Armed and Dangerous....
> http://www2.mrbrklyn.com/downtown.html - See the New Downtown 
> Brooklyn....
> 
> 1-718-382-5752
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
-- 
__________________________

Brooklyn Linux Solutions
__________________________
http://www.mrbrklyn.com - Consulting
http://www.brooklynonline.com - For the love of Brooklyn
http://www.nylxs.com - Leadership Development in Free Software
http://www.nyfairuse.org - The foundation of Democracy
http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and 
articles from around the net
http://www2.mrbrklyn.com/mp3/annie.mp3 - Armed and Dangerous....
http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn....

1-718-382-5752




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Multiple Form Elements

Posted by David Lloyd <ll...@rebel.net.au>.
Wouldn't this be easy to do a test run of?

DSL

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Multiple Form Elements

Posted by Ruben Safir <ru...@mrbrklyn.com>.
Hello

If I have a form with multiple elements with the same name, but different 
values, what is the resulting value in fdat?


Thanks


Ruben

-- 
__________________________

Brooklyn Linux Solutions
__________________________
http://www.mrbrklyn.com - Consulting
http://www.brooklynonline.com - For the love of Brooklyn
http://www.nylxs.com - Leadership Development in Free Software
http://www.nyfairuse.org - The foundation of Democracy
http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and 
articles from around the net
http://www2.mrbrklyn.com/mp3/annie.mp3 - Armed and Dangerous....
http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn....

1-718-382-5752




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: bug in documentation

Posted by Gerald Richter <ri...@ecos.de>.
>
> You made a small mistake in the documentation:
>
>...
> You used $\ as input separator. Note this is output separator. The right
form
> is:
>
> local $/ = undef;
>

Yes, of course. Thanks for the spot

> Have a nice day
>
> ps - when will you release 1.3 bugsfixed version?
>

I plan to do it really soon (hopefully this week), also it will not contain
all the new session features I had planed for it (these will go into 2.0)

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org