thanks jeff and marcus i found the doc i need in the unpack perldoc - thanks to marcus
> -----Original Message----- > From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 04, 2002 1:21 PM > To: Kipp, James > Cc: Perl > Subject: Re: question on cook book example > > > On Jan 4, Kipp, James said: > > >buy not exactly sure how this is working. tried looking at > perldoc pack > >but no luck. explanation is appreciated. > > > >$sum = unpack("%32C*", $string); > > That is a 32-bit checksum (which means the sum is taken mod > 2**32). It > does what your loop did (summing the ASCII values of each > character) but > it does it internally (in the C code of Perl, rather than in your Perl > code). > > -- > Jeff "japhy" Pinyan [EMAIL PROTECTED] > http://www.pobox.com/~japhy/ > RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]