... foreach my $attribute (@attributes) { ...
remove the attribute loop:
/usr/bin/perl -wT #author: Kunt Unt #Creation date: 10/06/2002 use strict; my $n=1; open (LOG, "anuncis.txt") || die "$!"; while (<LOG>) { chomp; my @attributes = split /\|/; print "<TABLE WIDTH=65% BORDER=1 ALIGN=CENTER>\n"; print "<TR BGCOLOR=#00FF00B>Anunci número $n del $attributes[0]</TR +>\n"; print "<TR>De $attributes[1] $attributes[2] que vol vendres $attrib +utes[6] a $attributes[7] €.</TR>\n"; print "<TR>Us hi podeu posar en contacte al(s) telèfon(s) $attribut +es[8] // $attributes[9]</TR>\n"; print "<TR>Segons l'horari que ens indica: $attributes[5]</TR>\n"; print "<TR>O bé al correu electrònic $attributes[10] o a la seva UR +L $attributes[11]</TR>\n"; print "<TR>Aquests són els seus comentaris:\n"; print "<P> <FONT COLOR=#DAA520>$attributes[12]</TR></TABLE>\n"; print "<BR><BR>\n"; $n++; } close LOG; print qq(<HR>Retorn a la nostra pàgina <a href="http://localhost/anunc +is.htm"> principal</a>);
-derby
In reply to Re: Too many outputs
by derby
in thread Too many outputs
by Kuntent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |