RE: Array of arrays

2006-02-28 Thread Timothy Johnson
The code you posted does not return any errors. Check the parts you didn't post. -Original Message- From: Tommy Grav [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 1:48 PM To: beginners@perl.org Cc: Tommy Grav Subject: Array of arrays I have a file of numbers that I want

Re: Array of arrays

2006-02-28 Thread Bob Showalter
Tommy Grav wrote: print $refstars[1][0] ; # - This is line 38 However this code returns an error I do not understand Missing right curly or square bracket at refstar.pl line 38, at end of line syntax error at refstar.pl line 38, at EOF Execution of refstar.pl aborted due to

Re: Array of arrays

2006-02-28 Thread Tommy Grav
Disregard my previous email as it was another error further up in the program. Typical beginners mistake I guess :) Cheers Tommy [EMAIL PROTECTED] http://homepage.mac.com/tgrav/ Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a

Re: Array or arrays

2005-10-04 Thread Philipp Traeder
On Tuesday 04 October 2005 07:48, Jabir Ahmed wrote: [..] my @details=split('\t',$line); [EMAIL PROTECTED]; $reccnt+=1; [..] How do i read the values of @details trought the $record array; i want something like this print $record[1][1] == this would refer to the

Re: Array or arrays

2005-10-04 Thread John Doe
Jabir Ahmed am Dienstag, 4. Oktober 2005 07.48: ... use strict; # forces declaration of variables use warnings; # big help :-) ... $file=$ARGV[0] || die File not found $!; my %uni=(); # %uni never used below my @record; open (FH,sort $file|);

RE: array of arrays

2003-10-20 Thread Stephen Hardisty
How do I read data out of a table-file in an array-of-arrays? Problem: I have to compare two tables with pairs of start-stop-Positions. I want to find out, which pair of Start-Stop-Position in table_1 is entirely within the range marked by a pair of start-stop-positions of the second

Re: array of arrays

2003-10-20 Thread Christiane Nerz
... from two text files. Output of a pattern-searching-program and data out of a DB (genebank). No prob to read in those data in a textfile too. Stephen Hardisty wrote: How do I read data out of a table-file in an array-of-arrays? Problem: I have to compare two tables with pairs of

Antwort: RE: array of arrays

2003-10-20 Thread Manfred . Beilfuss
: elabs.com Thema: RE: array of arrays 20.10.2003 12:37

Re: array of arrays

2003-10-20 Thread Tassilo von Parseval
On Mon, Oct 20, 2003 at 12:33:00PM +0200 Christiane Nerz wrote: How do I read data out of a table-file in an array-of-arrays? Problem: I have to compare two tables with pairs of start-stop-Positions. I want to find out, which pair of Start-Stop-Position in table_1 is entirely within the

RE: array of arrays

2003-10-20 Thread Stephen Hardisty
Alright then, first you want to think about how you are going to populate the arrays. For example, if I have a file that contains the following data: 1|10 5|7 I would do this: open(FH, bob.txt); my @file_list; while(FH) { # add a reference of the 2 file columns to @file_list

RE: array of arrays

2002-07-05 Thread Nikola Janceski
you need to learn about references. read the: perldoc perllol here is the jist though. @all = (\@array1, \@array2 ... ); # ... so on to access first array and first element: $all[0]-[0]; # i think or is it: $all[0][0] -Original Message- From: alex [mailto:[EMAIL PROTECTED]]

Re: array of arrays :: part2

2002-07-05 Thread drieux
On Friday, July 5, 2002, at 08:31 , Connie Chan wrote: [..] If you want to know what 'fields' inside %Data : @DataKeys = keys(%Data); print @DataKeys; # So you get Code, Birth, Name... # However, the elements order in @DataKeys is not base #on how's the order you create your key field in

Re: array of arrays

2001-10-18 Thread Michael Fowler
On Thu, Oct 18, 2001 at 02:28:41PM -0600, Tyler Cruickshank wrote: $array[$i][$j][$k] = [ @list ]; where, @list is a 2-D array ie. $list[][]. How do I access the individual elements of the array @list once Ive put it into the array @array? $array[$i][$j][$k][$l][$m] eq $list[$l][$m]

Re: array of arrays

2001-10-18 Thread _brian_d_foy
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Michael Fowler) wrote: $array[$i][$j][$k][$l][$m] eq $list[$l][$m] However, this is the first time I've seen someone intentionally using such a large-dimension array. What is this for? i've used many more dimensions than that ;) -- brian d