On Thu, Aug 02, 2001 at 12:51:55PM -0400, Ron Woodall wrote:
> Hi All:
> 
>       A bit of a conundrum here.
> 
>       while (attlist[$x] =~ m|<!-- start description| || m|<!-- start 
> explanation|) {x++}
> 
>       It finds "description" but not "explanation." What am I doing wrong? 
> It works sometimes but not other times.

This code doesn't work at all, it's full of syntax errors.  I'm assuming you
typed this in manually, rather than copied and pasted.

    while ($attlist[$x] =~ /.../ || $attlist[$x] =~ /.../) {
        $x++
    }

You have to supply the string the regex is to match against, otherwise it
matches against $_.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to