I'm trying to get started on some basic processing of data in array form. Basically this is a segment of what the data file looks like:
20070314180137 1003 1 641 1
20070314180137 1003 3 598 9
20070314180137 1003 4...
What I want to do is compare two arrays, one is just a vector with a single column, the other is multidimensional. I want to look at the 3 column in the multidimensional array and compare it to the single column in the other array and remove all of the lines from the multidimensional array for...
I have this line of code:
$prelimResult = mysql_query("SELECT MAX(volume),MAX(issue),MAX(year) FROM articles",$db);
That doesn't work quite how I want it to. I want it to find the largest volume, then the largest issue within that volume but instead this finds the largest volume...
I'm actually using E-Basic (with the E-Prime software) but I'm told most VB commands will work.
I'm using the E-Prime software to run an experiment, the software does not explicitely support playing a video stimuli but the E-prime support tells me that I can put in code like this...
I can't figure out what is wrong with my code. It's supposed to create an array and print it out, but nothing prints, I don't get any error messages or anything.
Here is my code:
while (<>) {
chomp;
push @isr, [split/\t/];
}
for my $i(0..$#isr){
if ($isr[$i][5] eq...
I'm not understanding how to create a multidimensional array by reading lines from a file.
So say I have a file like this:
0 1 2 3
4 5 6 7
8 9 10 11
With lines of numbers separated by tabs.
I would have something like this to read the lines from the...
I have the script that prints out a tab delimited file. However, when I open it in Unix it puts these ^M symbols after 2 of the columns. When I open it in windows in notepad they appear as rectangle boxes instead, and in Excel it interprets it as go to a new line, so my columns get all out of...
I'm using the following to sort an array that is composed of a list of decimal numbers:
@Final = sort { $a cmp $b } @Final;
It almost does it right accept it thinks like 9.2 is the same thing as 90.2 or 900.2. Here's a sample of the output:
887.91732
89.58872
890.72645...
So I have this script that produces 2 different arrays by reading data from a file, the 2 arrays look something like this:
Array #1:
4.12 0
5.13 1
6.14 0
Array #2
16.37 0????" 8 0 0 0
19.26 0????" 9 0 0 0
22.21 0????" 0 0 0 0
So...
So basically what I'm trying to do is read data from a file and organize it into a table that I can later open in Excel. I wrote some code that I thought would work but its just not doing anything and I'm not getting any error messages so I have no idea what's wrong.
Here's a shortened version...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.