Hi Drew,
On Fri, Sep 07, 2001 at 11:45:34AM -0400, Cohan, Drew ([EMAIL PROTECTED])
spew-ed forth:
> Hi,
>
> I don't understand something about Perl's order of operations with this
> code:
>
> ...if ($name_count{$member}++)...
Using ++ (or --) after the variable will cause the current value to be
evaluated, then the (de)increment will occur. Putting it before the variable
will (de)increment the variable, then evaluate the new value.
perldoc perlop (look for Auto-increment)
Cheers,
Kevin
--
[Writing CGI Applications with Perl - http://perlcgi-book.com]
"As the fletcher whittles and makes straight his arrows, so the master directs
his straying thoughts."
-- Buddha
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]