Re: Split multidimensional array into 4 multidimensional arrays

2003-10-18 Thread James Edward Gray II
On Saturday, October 18, 2003, at 03:12 AM, Kevin Pfeiffer wrote: Hi James, In article <[EMAIL PROTECTED]>, James Edward Gray II wrote: [...] my %quads = { quad1 => [ ], quad2 => [ ], quad3 => [ ], quad4 => [ ] }; I _think_ you meant to use parens and not curly brackets: my %quads = ( quad1 =>

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-18 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, James Edward Gray II wrote: [...] > On Friday, October 17, 2003, at 10:15 AM, Kevin Old wrote: [...] >> Yes, this is almost what I need, but instead of the headers being in >> the first column, I need the in the first row. [...] This is my new version (with heade

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-18 Thread Kevin Pfeiffer
Hi James, In article <[EMAIL PROTECTED]>, James Edward Gray II wrote: [...] > my %quads = { quad1 => [ ], > quad2 => [ ], > quad3 => [ ], > quad4 => [ ] }; I _think_ you meant to use parens and not curly brackets: my %quads = ( quad1 => [ ], quad2 => [ ], quad3 => [

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-17 Thread James Edward Gray II
On Friday, October 17, 2003, at 10:15 AM, Kevin Old wrote: Help with my script AND Comedy! Folks, don't forget to tip your waitress... Thank ya. I'll be here all week. :P On Thu, 2003-10-16 at 17:53, James Edward Gray II wrote: Okay, first, just have to ask this question: Are we doing this

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-17 Thread Kevin Old
On Thu, 2003-10-16 at 17:53, James Edward Gray II wrote: > On Thursday, October 16, 2003, at 03:25 PM, Kevin Old wrote: > > > James, is it possible to ask for a little more help with this? > > Nope, you've used up all your free answer tokens.Oh, > alright, just this once... Help with my sc

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-16 Thread James Edward Gray II
On Thursday, October 16, 2003, at 03:25 PM, Kevin Old wrote: James, is it possible to ask for a little more help with this? Nope, you've used up all your free answer tokens.Oh, alright, just this once... Here's the actual data I'm parsing (it's padded with spaces, but dont' worry about them

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-16 Thread Kevin Old
On Thu, 2003-10-16 at 11:52, James Edward Gray II wrote: > On Thursday, October 16, 2003, at 09:16 AM, Kevin Old wrote: > > > James, > > > > On Wed, 2003-10-15 at 22:42, James Edward Gray II wrote: > > > >> Now, if you meant a boring two-dimensional table, that's MUCH easier > >> and more sane. >

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-16 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Kevin Old wrote: > Hello everyone, > > I have a multidimensional array that I need to split into 4 > multidimensional arrays. I've tried the examples from the Programming > Perl 3rd ed. Chapter 9 for splicing Arrays of Arrays and am not having > any luck. > > Her

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-16 Thread James Edward Gray II
On Thursday, October 16, 2003, at 09:16 AM, Kevin Old wrote: James, On Wed, 2003-10-15 at 22:42, James Edward Gray II wrote: Now, if you meant a boring two-dimensional table, that's MUCH easier and more sane. my @array_2d = ( [ 1.. 4, undef, 5..8 ], [ 'A'..'D', undef

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-16 Thread Kevin Old
James, On Wed, 2003-10-15 at 22:42, James Edward Gray II wrote: > Now, if you meant a boring two-dimensional table, that's MUCH easier > and more sane. > > my @array_2d = ( [ 1.. 4, undef, 5..8 ], > [ 'A'..'D', undef, 'E'..'H' ], > [ ], >

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-16 Thread Rob Dixon
Kevin Old wrote: > > On Wed, 2003-10-15 at 17:43, James Edward Gray II wrote: > > > > On Wednesday, October 15, 2003, at 04:23 PM, Kevin Old wrote: > > > > > Hello everyone, > > > > > > I have a multidimensional array that I need to split into 4 > > > multidimensional arrays. I've tried the examp

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-15 Thread James Edward Gray II
On Wednesday, October 15, 2003, at 08:22 PM, Kevin Old wrote: Yes, you're right. This is how I meant to define my array: my @AoA = ( [ 1..12 ], [ 'A'..'L' ] ); Ok, what I need is for the AoA to be reformatted like this into another AoA. 1st 4 columns(1-4,A-D), "empty column", Next 4 columns(5-

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-15 Thread Kevin Old
On Wed, 2003-10-15 at 17:43, James Edward Gray II wrote: > On Wednesday, October 15, 2003, at 04:23 PM, Kevin Old wrote: > > > Hello everyone, > > > > I have a multidimensional array that I need to split into 4 > > multidimensional arrays. I've tried the examples from the Programming > > Perl 3r

Re: Split multidimensional array into 4 multidimensional arrays

2003-10-15 Thread James Edward Gray II
On Wednesday, October 15, 2003, at 04:23 PM, Kevin Old wrote: Hello everyone, I have a multidimensional array that I need to split into 4 multidimensional arrays. I've tried the examples from the Programming Perl 3rd ed. Chapter 9 for splicing Arrays of Arrays and am not having any luck. Here's