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
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
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
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
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|);
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
... 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
:
elabs.com Thema: RE: array of arrays
20.10.2003 12:37
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
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
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]]
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
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]
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
14 matches
Mail list logo