I used to do this in ksh all the time (Terminal programs), and it seems it works just as well in perl, I'm sure this isn't the best solution but it does work:
$file1 = 'c:\file.txt'; print "Enter File Here: $file1\b\b\b\b\b\b\b\b"; chomp($file2 = <STDIN>); $file2 ? $file = $file2 : $file = $file1;
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce
In reply to Re: printing deletable text to stdout
by kutsu
in thread printing deletable text to stdout
by richz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |