in reply to Incrementing string arrays when used with foreach loops
Update: What utter bollix! Didn't read the OP correctly.
tilly's suggestion for data structure is the better direction for you to be heading. However, your immediate printing problem can be solved by adding a new line:
print "@cards[0 .. 12]\n";
|
|---|