in reply to Pure Perl Split Screen

Hello PilotinControl

your code is a little bit confused: there are many modules you do not use, you are not printing to the file, etc..
What i can suggest you is a total rewrite... ;=)
As first step in the program backup your data file with some time info in the name, then, after have read it in memory iterate over records. You also have to use some subroutine to cut away the code repetition of: clear the screen, prompt for input, update the value cycle.

Note also that dealing with the screen in cmd.exe is a bit uncomfortable: if you want some text to be near the bottom you have to know the size of the actual screen and print out a sort of template with empty lines. in any case the input is the last line.

More: you may need to verify the succesfull open of file for writing, the data entered by user (you have constraints on such data? can someone input the same data? can be blank?).

HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Pure Perl Split Screen
by PilotinControl (Pilgrim) on Nov 11, 2014 at 12:34 UTC

    Hello Discripulus,

    I've updated the code to reflect what is really needed and removed the modules really not needed for this instance of the code as the code is part of a larger program that uses the above mentioned modules.

    What I've tried to show is that the Upper screen stays the same through out and the lower screen is what changes...in this case changing the Owner of the Car..Typing in Current Owner and then typing in New Owner and once enter is pressed it updates the record and then the top screen would show the new owner? So each function would open, append, and close the file and the last screen would open the file displaying the change made to the file. Thanks for the help.