Front page | perl.beginners |
Postings from June 2011
accessing array
Thread Next
From:
rodeored
Date:
June 1, 2011 17:15
Subject:
accessing array
Message ID:
63c90093-c43f-4146-ba44-f7b5cb0c9723@hd10g2000vbb.googlegroups.com
This code produces the following 3 lines:
foreach $twords(@topTypes)
{
$output.="<p>".commify_series(@$twords)."</p>";
}
Type 7 and Type 8
Type 9, Type 5, and Type 4
Type 2
I only want the first line. But when I try:
$output.="<p>".commify_series($topTypes[0])."</p>";
$output .= <<HTML;
It produces:
ARRAY(0x9045bf0)
If I try adding the @: $output.="<p>".commify_series(@$topTypes[0])."</
p>";
There's no output.
How do I just get the first line?
Thread Next
-
accessing array
by rodeored