> Jay Savage wrote: > > > > > > > You might also want to keep in mind that the BITS must be a > power of 1 > >>>>It must be a power of 2.
> > > from one to 32, and that vec() is lvaluable, but you don't need to > > know that to look at the code here. > > > > vec( $address, 7, 1 ) > > > > sayas "break up the string $address into chunks of one bit, > and return > > the seventh chunk". Then it looks at the 6th chunk and the > 5th chunk. > >>>It is zero based so that is "the eighth chunk" followed by >>>the 7th chunk and the 6th chunk. > > > The sneaky part was stringing all those tertiary "hook" operators > > together; that's probably the confusing part. John, or > whoever wrote > > the code, Thanks John and Jay. It was the way the operators fell falls through. I worked it out again and now understand it. > > Why this works has to do with the way different classes of networks > > are assigned, and the way struct in_addr is defined in > socket.h. ..... I knew exactly what the goal of the code was and how class and classless networks and subnetting works. This question was more about understanding vec() Thanks again -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>