in reply to Vexed Intitiate
When I run the above I get the following output:-#!/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"; }
Each element of the three arrays is output, so what is the problem ?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
|
|---|