nysus has asked for the wisdom of the Perl Monks concerning the following question:
I have this test program:
It outputs this when run with prove -lvm:#! /usr/bin/env perl $| = 1; print "test"; print "\n"; print 'Enter: '; <STDIN>
test.pl .. test
Notice that the Enter: prompt doesn't appear and is getting buffered. I tried various tricks with IO::Handle and other suggestions I googled but none of them worked. I'm on a Mac, Perl ver. 5.24.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Outputting input prompt with prove
by haukex (Archbishop) on Aug 05, 2019 at 09:00 UTC | |
by nysus (Parson) on Aug 05, 2019 at 12:40 UTC | |
by haukex (Archbishop) on Aug 05, 2019 at 12:57 UTC | |
|
Re: Outputting input prompt with prove
by Tanktalus (Canon) on Aug 05, 2019 at 03:44 UTC | |
by nysus (Parson) on Aug 05, 2019 at 05:37 UTC | |
by Corion (Patriarch) on Aug 05, 2019 at 05:55 UTC | |
|
Re: Outputting input prompt with prove
by davido (Cardinal) on Aug 05, 2019 at 15:09 UTC | |
by Anonymous Monk on Aug 06, 2019 at 01:50 UTC | |
|
Re: Outputting input prompt with prove
by 1nickt (Canon) on Aug 05, 2019 at 11:51 UTC | |
by nysus (Parson) on Aug 05, 2019 at 12:43 UTC |