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 bkrike 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: Meatsim
  • Content: Threads
  • Order by date
  1. Meatsim

    Unix commands in perl scripts

    Hello folks, I have a question: I have a perl script that takes a few lines of text and splices them into an executable Unix command. It does so by writing these lines into a file called change.tmp which is created at runtime. However, I can't seem to execute change.tmp using system...
  2. Meatsim

    'System' looking inside files

    Hello all, I have yet another problem! (Yay.) This time I have a problem with getting the System command to work with info in an external data file. The code snippet I'm dealing with looks a bit like this: [code] $runfile = "run.tmp"; open(CVSRUN, $runfile) or die ... system...
  3. Meatsim

    String to number conversion

    Hello folks! Is there a function that converts a string to a number (or integer, or real) in perl? I'm trying to look it up in the perl book I have, but it's the classic "looking up a word you can't spell in the dictionary" problem. Thanks! -Meatsim
  4. Meatsim

    Reading lines from external files

    Hello folks, thanks for your help on earlier problems. I have another one - when reading data from a file, how do you skip to the next line? Right now I have a while(<INPUTFILE>) solution going, but is there a command that loads the next line of the file, unrelated to while loops? Like...
  5. Meatsim

    'Or' and 'And' if statements in Perl

    Hello again, I was wondering if there's any special syntax that you need to use to create 'or' and 'and' if statements, like this 'and' statement in C: if ((a==6) && (b==6)) { printf(&quot;All you can think of is six.&quot;); } I can't seem to get if statements like these to work in perl...
  6. Meatsim

    Sorting a two-dimensional array

    Hello folks, I’m having difficulty in sorting a two-dimensional array. Right now, it looks something like this: Author[0] | Program[1] | Date[2] | Notes[3 – end] jdoe sample.c 01/01/01 A sample program[3] That does things[4] jeffk l33t.c 03/25/00 Another Program[3] …etc. For the moment...

Part and Inventory Search

Back
Top