Yes, but it's also like killing an ant with a hammer. A little overkill when you're doing basic bit-shifting. Sure, C might be able to do a LOT more than C, but why do you want to write 100 lines of code when you can do it in 4? Jason DeStefano wrote: > > heh. no, i mean C. it does a LOT more than perl--and a lot faster too. :) > > At 05:31 PM 3/11/01 -0600, you wrote: > >On Sun, 11 Mar 2001, Jason DeStefano wrote: > > > >> Yeah, its called "C". > > > >You mean "Perl". > > > >2.5.9 Shift Operators > > > >The bit-shift operators (<< and >>) return the value of the left argument > >shifted to the left (<<) or to the right (>>) by > >the number of bits specified by the right argument. The arguments should > >be integers. For example: > > > >1 << 4; # returns 16 > >32 >> 4; # returns 2 > > > >Andy > >