in reply to Re: Newbie: 'For loops'
in thread Newbie: 'For loops'

$Item is not an array, its a reference, so you have to dereference, like  $$Item[0] or
printf "Item %s is %s\n Name: %s\n Amount: %s\n Process: %s\n\n", $i, @{$Item}[3,0,1,2];
see References quick reference