Not sure if this is the right place to ask this but here goes.
I have a perl script that creates output log files. I wish to allow the script user to view these log files if certain pre-determined conditions are met. e.g. an error occurs. Essentially being able to use an editor or have the same sort of functions as an editor (like vi) but not be able to break out of it to the operating system command line level.