Re: bit patterns and bitwise operations

2009-03-27 Thread Mike McClain
On Fri, Mar 27, 2009 at 11:20:27AM +, Dermot wrote: > Hi All, > $bits |= 1<< ($countryid - $currentno); ### > What > is this left shift doing? Is that a or complement? > } > else > { > $bits &= 15-

Re: bit patterns and bitwise operations

2009-03-27 Thread John W. Krahn
Dermot wrote: Hi All, Hello, I have been trying to write this email for a day or two but the content keeps shifting as my understanding of the problem develops. I have encountered a bit of code that I am struggling to understand completely. The code is for dealing with database fields that a

Re: First attempt at writing simple Module

2009-03-27 Thread Dr.Ruud
Chas. Owens wrote: 2. package variables are always visible when fully qualified (i.e. $PKGNAME::varname), but the short name is only visible to the scope that contained the our statement and any nested scopes For example: { package Data::Dumper; our ($Indent, $Sortkeys, $Terse) = (1)x3

bit patterns and bitwise operations

2009-03-27 Thread Dermot
Hi All, I have been trying to write this email for a day or two but the content keeps shifting as my understanding of the problem develops. I have encountered a bit of code that I am struggling to understand completely. The code is for dealing with database fields that are bigint(20) type. | all