Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: lmbylsma
  • Content: Threads
  • Order by date
  1. lmbylsma

    Newbie Question - Working with Arrays

    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...
  2. lmbylsma

    comparing two arrays

    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...
  3. lmbylsma

    SQL nested query

    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...
  4. lmbylsma

    Split problem

    I have a data file that looks something like this: 1 ABABAB 123456 2223 0.626903553299492 1 ABABAB 123465 60 0.0169204737732657 2 ABABAB 123546 60 0.0169204737732657 1 ABABAB 123564 9 0.00253807106598985 7 AABBAB 123645 8 0.00225606316976875 1 ABABAB 123654 13 0.00366610265087422 10 AAABBB...
  5. lmbylsma

    Playing a Video

    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...
  6. lmbylsma

    Array Problem

    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...
  7. lmbylsma

    Multidimensional Arrays

    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...
  8. lmbylsma

    Problem creating tab delimited file

    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...
  9. lmbylsma

    Sorting Problem

    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...
  10. lmbylsma

    Combining Arrays

    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????&quot; 8 0 0 0 19.26 0????&quot; 9 0 0 0 22.21 0????&quot; 0 0 0 0 So...
  11. lmbylsma

    reading data from a file, array manipulation

    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...

Part and Inventory Search

Back
Top