|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^9: Parsing problemby kcott (Parson) |
| on Nov 16, 2012 at 09:02 UTC ( #1004157=note: print w/ replies, xml ) | Need Help?? |
|
Your problem here is that the number after 'FT /colour=' (in this case "4"), is used as a key for %cod but you've only assigned @cod{qw{1 2 3}}. Using the following line solved the problem for me (you'll probably want a different value):
Alternatively, you can check $cod{$1} before using it:
-- Ken
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||