in reply to Counting enumerated data in XML
For starters, it looks like you're mixing up assignment and comparison. You have "if $da is assigned bd, then compare $femi_da to Downplayer". You should definitely have
at the top of your program. Then I would recommend you turn your if-block into a hash:use strict; use warnings;
A lot of what you wrote isn't valid Perl. I think you should start a little simpler until you get used to writing Perl.my %da_to_femi = ( bd => 'Downplayer', co => 'offers,options commit', +#etc # so you can say $femi_da = $da_to_femi{$da};
|
|---|