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!

Recent content by lmbylsma

  1. lmbylsma

    Newbie Question - Working with Arrays

    Thanks, that is very helpful to get me started.
  2. lmbylsma

    Newbie Question - Working with Arrays

    I was trying to do this using just basic arrays which I am more familiar with but it seems to be more complicated to try to do it that way. I haven't tried using hashes yet, I'm pretty new to perl, I only use it every now and then to do some things with data that excel and my stats program...
  3. 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...
  4. lmbylsma

    comparing two arrays

    Thanks so much, both of those suggestions work great.
  5. 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...
  6. 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...
  7. lmbylsma

    Split problem

    mikevh, Sure that works for printing but that's not what I want to do with it. I'm going to be doing some more complicated things for which I need everything to be in one array where I can access specific elements. What Siberian suggested is too simple to work, but if I went along those...
  8. lmbylsma

    Split problem

    That would work if I just wanted to print it out, but I want to be able to work with the individual elements later on. With that example it puts everything from a line into one element resulting in a single dimensional array, but I need to refer to specific elements like the "A" in...
  9. 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...
  10. lmbylsma

    Playing a Video

    I contacted EPrime about my problem and this is all they would tell me. I don't understand it, but perhaps it would be helpful: "The most common methods to call and access external rograms would be via OLE/COM Automation or via DLL calls via Declare statements. The use of these methods...
  11. 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...
  12. lmbylsma

    Array Problem

    I have Learning Perl (and I read the entire thing) it doesn't even cover multidim arrays. I just got the Programming Perl book yesterday and am working on going through it. I read somewhere in the perldoc that @array[1]->[2] and @array[1][2] mean exactly the same thing, is this not the case...
  13. 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...
  14. 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...
  15. lmbylsma

    Problem creating tab delimited file

    Nope, that results in exactly the same thing. Still have the M^'s

Part and Inventory Search

Back
Top