in reply to Re^3: Problem with Windows Console input
in thread Problem with Windows Console input
Thanks for this! It certainly works as shown. Is it documented anywhere? I haven’t been able to find CON: in either the Perl documentation or Programming Perl. In any case, it seems I was wrong: re-opening STDIN doesn’t solve anshulzunke’s problem:
If I add open *STDIN, '<', 'CON:' or die $!; immediately before the final call to readInput(), the script dies with:
Bad file descriptor at...
If I add it immediately before return $Password; in sub readPasswordWindows, there is no error but the script generates:
Use of uninitialized value $ip in concatenation (.) or string at...
as in the OP.
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Problem with Windows Console input
by BrowserUk (Patriarch) on Feb 24, 2014 at 16:49 UTC | |
by Athanasius (Archbishop) on Feb 25, 2014 at 03:56 UTC | |
|
Re^5: Problem with Windows Console input ( CON: AUX COM1 PRN LST LPT 1
by Anonymous Monk on Feb 24, 2014 at 11:47 UTC |