in reply to Access dynamic array elements

Why does this rule out the "foreach" loop? Do you really need a single print statement? If you really need a single print statement (because it's a homework requirement, maybe), consider looking at the join function.

Replies are listed 'Best First'.
Re^2: Access dynamic array elements
by perlpal (Scribe) on Jun 16, 2009 at 07:30 UTC
    Yes, the print statement is a stringent requirement . thanks for the join suggestion , i hope it works out for me .