Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^6: Drop-In Password Dialog?

by davido (Cardinal)
on Dec 03, 2012 at 17:42 UTC ( [id://1006919]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Drop-In Password Dialog?
in thread Drop-In Password Dialog?

Out of curiosity, have you considered basing Ask::STDIO on IO::Prompt::Tiny? (...or on IO::Prompt::Hooked -- shameless plug.) That way even if there's no live terminal input can still be received via sane defaults.

You may already have thought of it, and I don't know that those modules would be a good fit, but just asking. :)


Dave

Replies are listed 'Best First'.
Re^7: Drop-In Password Dialog?
by tobyink (Canon) on Dec 03, 2012 at 18:29 UTC

    I'm not sure that makes much sense. The point of Ask::STDIO is to interact with a live terminal. If the process isn't running on a live terminal (-t STDIN and -t STDOUT), Ask shouldn't even attempt to load Ask::STDIO.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2025-03-15 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (53 votes). Check out past polls.