in reply to How to 'pull in' input
This is one way that it could be done. Note, this should work on either Solaris or Windows. I have done this sort of thing on both Unix and Windows. To make sure you are looping through properly, you might try a simple loop like this:open LOG, "mylogfile.txt" or die "Cannot open file $!"; while (<LOG>) { #do some stuff with data } close LOG;
open LOG, "mylogfile.txt" or die "Cannot open file $!"; while (<LOG>) { print $_; # this will print out the value of $_ so you can # check it to make sure it is what you want to be # processing. } close LOG;
Hope this helps some.
|
|---|