Hi all , just learned the basics of perl thru a website.
and i was just wondering what the perl equivalent of php code ....

for($i = 0; $i < 10; $i++)
{
$myarray[] = $i;
}

would be.

Any help appreciated thank you ..

How could have i forgotten ???

push function .. btw for those of you have no clue either
syntax: push(@array_name, $value);

adds another key to the array..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.