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


in reply to Counting enumerated data in XML

It's difficult to guess what you are intending to do, but I am sure you don't intend using the assignment operator  if($da = fa)instead of the comparison operator  if($da eq "fa")

I hope this begins to help you

thinker

Replies are listed 'Best First'.
Re^2: Counting enumerated data in XML
by ikegami (Pope) on Mar 29, 2005 at 15:58 UTC
    When comparing strings, one needs to use 'eq', not '=='.

      whoops, sorry :-)

      I'll correct that