My first perl program stops working after the third entry. Could anyone help?
#!/usr/bin/perl @skuid=("11021","11022","11023","92523002","02196005","92196019","9217 +6184","92305069","92305070","92305054","14316002","92620206","9250300 +1"); @name=("mt. eden","dom perignon","veuve cliquot","Arcadian Pinot Noir +Sl Holl","Au Bon Climat Pinot Noir La Bauge","Au Bon Climat Pinot Noi +r Laetitia","Bannister Pinot Noir Seghesio Vineyard","Broadley Pinot +Noir Claudias Choice","Broadley Pinot Noir Marcille Loraine","Broadle +y Pinot Noir Reserve","Castalia Pinot Noir Rochioli Vyd","Coldstream +Hills Pinot Noir","Costa De Oro Pinot Noir"); @price=("45.99","135.99","79.99","24.99","24.99","39.99","26.99","39.9 +9","29.99","23.99","29.99","17.99","19.99"); @combo=($skuid,$name,$price); print "Content-type:text/html\n\n"; $n==0; foreach $item(@combo) { print "SKUID:$skuid[$n]\n"; print "NAME:$name[$n]\n"; print "PRICE:$price[$n]\n"; $n++; }

In reply to Perplexed Winemaking Monk by bini

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.