You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by William Barrett Simms <ws...@fivercomputing.com> on 2004/04/15 18:41:04 UTC
E2.0b11 - [$ foreach $] problems
I'm coming across many odd problems with E2.011b.
I'm trying to do this:
[$ foreach $item (keys %fdat) $]
[+ $item +] : [+ $fdat{$item} +]<BR>
[$ endforeach $]
Pretty simple, eh? However, the <BR> tag is only appearing at the end of
last line instead of each line. Is this a known problem? Here's
some sample output:
airline american_airlines
departure_city Boston
departure_date sdsf
departure_time sdfsd
return_date sdfds
return_time sdfs
passenger_01 WBS
passenger_02
passenger_03
passenger_04
passenger_05
passenger_06
passenger_07
passenger_08
passenger_09
passenger_10
passenger_11
comments test
book_hotel : <BR>
--
Fiver Computing Corporation
http://www.fivercomputing.com
(781)405-4686
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: E2.0b11 - [$ foreach $] problems
Posted by Gerald Richter <ri...@ecos.de>.
William Barrett Simms wrote:
> I'm coming across many odd problems with E2.011b.
>
> I'm trying to do this:
>
> [$ foreach $item (keys %fdat) $]
> [+ $item +] : [+ $fdat{$item} +]<BR>
> [$ endforeach $]
>
> Pretty simple, eh? However, the <BR> tag is only appearing at the
> end of last line instead of each line. Is this a known problem?
This is strange. I just done the same here and I get the correct result.
When you make a page with just (and no other code)
[- %fdat = (a=>1,b=>2,c=>3) -]
[$ foreach $item (keys %fdat) $]
[+ $item +] : [+ $fdat{$item} +]<BR>
[$ endforeach $]
Does the <BR> appears correctly or not?
Gerald
> Here's
> some sample output:
>
> airline american_airlines
> departure_city Boston
> departure_date sdsf
> departure_time sdfsd
> return_date sdfds
> return_time sdfs
> passenger_01 WBS
> passenger_02
> passenger_03
> passenger_04
> passenger_05
> passenger_06
> passenger_07
> passenger_08
> passenger_09
> passenger_10
> passenger_11
> comments test
> book_hotel : <BR>
---------------------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
---------------------------------------------------------------------------
Besuchen Sie uns auf der KOMCOM 2004 in Mannheim
25. bis 27. Mai 2004 Stand K11a www.komcom.de
ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
---------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org