Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Drop-In Password Dialog?

by tobyink (Abbot)
on Dec 01, 2012 at 21:28 UTC ( #1006644=note: print w/ replies, xml ) Need Help??


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

A developer release is on CPAN now... Ask-0.000_01.

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


Comment on Re^3: Drop-In Password Dialog?
Re^4: Drop-In Password Dialog?
by ColonelPanic (Friar) on Dec 03, 2012 at 15:10 UTC

    I appreciate your hard work on this, even creating a module on CPAN, great! For now, I have gone with zentara's solution, because it uses Tk, which is more of a standard tool.

    Perhaps I will find some time to convert that into a Tk implementation for your module.



    When's the last time you used duct tape on a duct? --Larry Wall

      An Ask::Tk is on my todo list, plus possibly Ask::Wx.

      Ask->detect will then use Ask::Tk or Ask::Wx ahead of Ask::Zenity but only if Tk or Wx is available - they'll silently fallback otherwise.

      In the future it might be possible to figure out if the user is on Windows or Mac or GNOME or KDE or whatever, and prefer the implementation which most closely matches their GUI.

      Of course, if the script is being run in a terminal and STDIN and STDOUT are connected to the terminal, then Ask::STDIO will be used.

      Update: Ask-0.000_02 now includes a Tk implementation.

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

        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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-12-19 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (78 votes), past polls