Re: [Boston.pm] Reminder: Tech Meeting Tues, Jan 13

2004-01-13 Thread greg . london
As the lucky winner of the "Badger Book" prize I just wanted to say: THANKS FOR THE BOOK! And I forgot to have Darren autograph it. ;( Greg London ___ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

Re: [Boston.pm] arrays

2004-01-13 Thread greg . london
Jeremy Muhlich wrote: > > Well you can't even assign a scalar to an @array to preallocate size, > the way you can assign to $#array. @array = 8 always creates an array > with a single element, namely 8. So I am pretty sure you're screwed > trying to make perl do what you want. That's what I

Re: [Boston.pm] arrays

2004-01-13 Thread Jeremy Muhlich
Well you can't even assign a scalar to an @array to preallocate size, the way you can assign to $#array. @array = 8 always creates an array with a single element, namely 8. So I am pretty sure you're screwed trying to make perl do what you want. Maybe you couldjust *read* the scalar value via

Re: [Boston.pm] arrays

2004-01-13 Thread Uri Guttman
it would help to see the code of the actual tied module. a wild guess is that you have a wierd off by one error. $#foo = 8 is going to create an array with 9 elements. the $size = @foo is returning the value 10 so you are off by one there. maybe in your module code you aren't compensating for the

[Boston.pm] arrays

2004-01-13 Thread greg . london
look, I don't mean to go on a rant here, but... I want to create a tied array to simplify using bit vectors. The array would have the behaviour such that in scalar context of the array, I would access a stored integer value. when indexing into the array, I would access an individual bit into