in reply to Diaryland parsing

Honestly? Just check for an non-empty value as well:
if ($tag->[1]{align} and $tag->[1]{align} eq 'left' and ...) { # do stuff }


japhy -- Perl and Regex Hacker

Replies are listed 'Best First'.
Re: Re: Diaryland parsing
by Amoe (Friar) on Jul 07, 2001 at 15:42 UTC
    That's what I thought. Oh, and does it matter if you put align in quotes or not?
      I compiled a brief summary of what's allowed under even 'strict' at Re: using quotes in hash keys, if you're curious. It gives you an idea of how the rules work with respect to hash keys, and hash list definitions using the arrow ('=>') operator.
Re: Re: Diaryland parsing
by Amoe (Friar) on Jul 07, 2001 at 15:44 UTC
    Thanks ;-) Notice any other flaws in my logic, btw?