Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
XP is just a number
 
PerlMonks  

Re^2: CPAN and readline on windows

by BrowserUk (Pope)
on Mar 25, 2009 at 16:55 UTC ( #753178=note: print w/ replies, xml ) Need Help??


in reply to Re: CPAN and readline on windows
in thread CPAN and readline on windows

Yes. I've added:

$Suppress_readline = 1;

just after the use vars: where it is declared.

The reason for asking if there was an official way of disabling it is because at the top of the shell() method, there is this line:

$Suppress_readline = ! -t STDIN unless defined $Suppress_readline;

which implies that $Suppress_readline could somehow be defined prior to the test on STDIN.

I couldn't find the mechanism whereby that might occur--barring your way of setting it on the command line--, but had there been some existing mechanism (maybe an environment variable or similar), I would prefer that to modifying the script directly.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^2: CPAN and readline on windows
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2014-04-24 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls