in reply to printing deletable text to stdout
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: printing deletable text to stdout
by jdalbec (Deacon) on Oct 04, 2004 at 23:31 UTC | |
by kutsu (Priest) on Oct 05, 2004 at 13:32 UTC |