in reply to Boolean operators and list assignments

I'm actually not sure this is a problem with precedence or with list assignment. Note that the list assignment is in scalar context in both code blocks. The first is in the scalar context of &&; the second is in the scalar context of a while condition.

However, your two loops have different ending conditions; the first ends when $siteslisted >= $sitesperpage, while the second ends when $siteslisted < $sitesperpage. That may just be an error in retyping the code here, though.

Based on the code you posted, it's hard to say what the problem is...


This node was created due to a race condition in the SOPWify feature (I, tye, moved a Categorized Question to Seekers of Perl Wisdom while chipmunk was in the process of composing an answer to it). Please vote for chipmunk's repost of this below so he will get credit for the votes.

This node will be deleted.

Originally posted as a Categorized Answer.

Replies are listed 'Best First'.