Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: printing deletable text to stdout

by TheEnigma (Pilgrim)
on Oct 04, 2004 at 19:06 UTC ( [id://396344]=note: print w/replies, xml ) Need Help??


in reply to printing deletable text to stdout

This isn't the most elegant, maybe; but it should work if no one comes up with a better solution. Change the prompts to whatever suits you.

print "Please enter a filename: c:\test.txt"; print "Hit enter to accept, or enter a different filename: "; my $filename = <STDIN> || 'c:\test.txt'; chomp($filename);

TheEnigma

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://396344]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found