Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Pre-populating <STDIN> with a default value

by belg4mit (Prior)
on Dec 24, 2008 at 01:58 UTC ( #732400=note: print w/replies, xml ) Need Help??


in reply to Pre-populating <STDIN> with a default value

The conventional method is to simply show the default in brackets and use that if the response is empty. You could also probably work something bass-ackwards out with FileHandle::Unget

--
In Bob We Trust, All Others Bring Data.

  • Comment on Re: Pre-populating <STDIN> with a default value

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2023-12-06 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (30 votes). Check out past polls.

    Notices?