On Wed, 23 Jul 2003 18:05:58 +0530, [EMAIL PROTECTED] (Sachin Hegde) wrote:
>Hi, >I am new in PERL. I wanted to know how to perform bitwise operations in PERL >like masking some bits , anding oring bits. Hi Sachin. If you're new to Perl, then bitwise operations shouldn't be your first priority. Perl does have this facility, but there's almost always a better way to do what you want. Working at bit level is usually done either because your input data is in this format (in which case you quickly translate it and forget that it ever was) or because your software's on a critical path and you need to work close to the machine (in which case you shouldn't be writing in Perl). Another reason is that you may want a conceptual array of boolean values. There are modules to handle this, but before I go any further tell us what your problem is. Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]