First off try putting your code in <CODE>...</CODE> tags
this helps to make it more readable vis.
#!/usr/bin/perl
@skuid=("11021","11022","11023");
@name=("mt. eden","dom perignon","veuve cliquot");
@price=("45.99","135.99","79.99");
print "Content-type:text/html\n\n";
foreach $skuid(@skuid) {
print "SKUID:$skuid\n";
}
foreach $name(@name) {
print "NAME:$name\n";
}
foreach $price(@price)
{
print "PRICE:$price\n";
}
When I run the above I get the following output:-
Content-type:text/html
SKUID:11021
SKUID:11022
SKUID:11023
NAME:mt. eden
NAME:dom perignon
NAME:veuve cliquot
PRICE:45.99
PRICE:135.99
PRICE:79.99
Each element of the three arrays is output, so what is the problem ? |