http://qs321.pair.com?node_id=587940

echoangel911 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
my $templateformat = 'w<NM>b<NM>cm<CH>sw<SW>'; my $inputexample = 'w8b8cm512swno';
is there any easy way to extract NM, NM, CH, SW in one array and 8 8 512 no in another array based on this template or any similar formats?