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...
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...
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
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...
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("All you can think of is six."); }
I can't seem to get if statements like these to work in perl...
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...
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.