On Fri, 2010-02-19 at 14:25 +0200, Shlomi Fish wrote:
> Hi,
> 
> On Friday 19 Feb 2010 14:12:51 120 wrote:
> > I know I can do this:
> > 
> > $bitvalue=$bitvalue|32
> > 
> > but is there a shorthand for this?
> > 
> > $bitvalue=|32 does not appear valid - but I'm sure there is probably a
> > way?
> 
> Yes, there is:
> 
> <<<
> $bitvalue |= 32;
> >>>
> 
> You can also do +=, -=, *=, .= etc.
Thank you.
> 
> Finally, I should note that you should start a new thread bys sending a new 
> message to beginners@perl.org, not by replying to an existing message and 
> deleting its content.

Apologies for my error - if I may point out that sending 'off list'
replies is also equally rude.

> 
> Regards,
> 
>       Shlomi Fish
> 
> -- 
> -----------------------------------------------------------------
> Shlomi Fish       http://www.shlomifish.org/
> Funny Anti-Terrorism Story - http://shlom.in/enemy
> 
> Deletionists delete Wikipedia articles that they consider lame.
> Chuck Norris deletes deletionists whom he considers lame.
> 
> Please reply to list if it's a mailing list post - http://shlom.in/reply .
> 


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to