Tagged Questions
0
votes
1answer
121 views
perl variable scope using while loop
I have an ftp upload from my client machine to my server running consistently as a means of backup, occasionally if the connection becomes corrupt the upload will stall, the solution to this is to ...
0
votes
1answer
33 views
Correct use of input file in perl?
database.Win.txt is a file that contains a multiple of 3 lines. The second of every three lines is a number. The code is supposed to print out the three lines (in a new order) on one line separated by ...
0
votes
1answer
111 views
Optimization of while a loop reading a dictionary
Hello every one this is my first question here,
I'm using an open source program called MElt which lemmatize (give the lemma example:giving-->give) of words. MElt works on linux and its programmed in ...
-1
votes
1answer
81 views
Special character in the file exit the while loop in Perl
I wrote a simple parser for a .txt file with the following instructions:
my $file2 = "test.txt";
open ($process, "<",$file2) or die "couldn't manage to open the file:$file2!";
while ...
-2
votes
1answer
49 views
PERL: Read file into Array in Loop
I see there are many questions very similar to this but I am unable to find the answer and trying to piece it together based on these answers isn't working either.
GOAL: Using Perl, read a file ...
-5
votes
1answer
460 views
Why does this for loop inside while exit before the while condition?
I am reading a file and executing a while loop to iteratively run through each line in the file. Inside the while loop I have a if condition which has a nested for loop which does some processes. What ...
0
votes
0answers
131 views
My loop is not fully incrementing
The script below is to read each section of a file.
There is a keyword for each section of the file which needs to change 19 times. After it had been set then the script would skip over the first 5 ...
0
votes
0answers
168 views
Perl handle db connectivity loss during while(my $result = fetchrow_hashref) loop
I've been struggling with a perl script that I'd like to have run "forever" or until I interrupt it with a SIGINT. My problem occurs when/if you assume execution is inside a while loop, the database ...