On Wed, Jun 20, 2001 at 04:38:14PM -0400, Chas Owens wrote:
> The Perl syntax to match the VB loop above is:
> 
> while ($a = 5 or $b = 2) {
>       blah blah blah;
> }

Chas, of course, meant ==, not =, as in:

    while ($a == 5 or $b == 2) {
        ...
    }

VB has some weird things going on with = as assignment and = as comparison,
but = is indeed a comparison operator.


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

Reply via email to