http://www.perlmonks.org?node_id=989682


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>