On Sun, 2003-02-23 at 03:41, Beau E. Cox wrote:
> Hi -
> 
> > -----Original Message-----
> > From: jdavis [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, February 22, 2003 11:52 PM
> > To: perl
> > Subject: bitwise?
> > 
> > 
> > Hello,
> >   Could someone explain what bitwise means? I am reading
> > up on Perl operators and I am seeing the term bitwise used for
> > the & and | operators. better yet could i get a little code
> > with a example of bitwise operators that a newbie could
> > assimilate.
> > 
> > Thanks,
> > -- 
> > jd
> > [EMAIL PROTECTED]
> > 
> > Bad spellers of the world untie!
> > 
> 
> Just that: bit-by-bit!
> 
> bit wise and, for example:
> 
>    1011 0111
>  & 0011 1110
>    ---- ----
>    0011 0110
> 
> bit wise or:
> 
>    1011 0111
>  & 0011 1110
>    ---- ----
>    1011 1111
> 
> See? The bit wise operations are carried out
> bit-by-bit regardless of how the data is used
> (as a character, binary number, decimal digit,
> floating point number, or whatever).
> 
> Aloha => Beau;
> 
> PS: I love your tidbit about bad spellers - I'm
> a charted meber!  :) 
thanks Beau-- I had to put that there before I had a 
nice Mail-Client with a spell check :) Saved me a ration
of shit from all my user groups :)


Thanks all who replied...I think I get it...so if..

$name = jason

if( $name ~ /^j/ & $name ~ /n^/){
        do code;
}

is this a example...?? are letters broke down into there
binary representative and then compared?


-- 
jd
[EMAIL PROTECTED]

Bad spellers of the world untie!



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to