in reply to list separation

Can you do that using simple if-else?
if($aandeel=~m/gold/) { #push in goldlist } elsif($aandeel=~m/copper/) { #push in copperlist }
I have assumed $aandeel contains the gold quote/copper quote entity. </code>

Replies are listed 'Best First'.
Re^2: list separation
by robertw (Sexton) on Aug 26, 2012 at 21:34 UTC
    I would have to do with 60 commodities unfortunately, I really have trouble understanding how to do this. Do you know another way? or explain how it works? I am really not experienced in this...