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. 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. 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/