in reply to Re: STDIN refuses input
in thread STDIN refuses input
You could test STDIN on your local computer using
CGI::Capture. Try this:
#!perl -lw use strict; use CGI (); use CGI::Capture (); print "What is your name?"; sleep 5; SCOPE: { my $input = <STDIN>; chomp $input; my $input_ref = \$input; if ( CGI::Capture->_stdin($input_ref) ) { print "Hello, $input" or die $!; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: STDIN refuses input
by GrandFather (Saint) on Dec 16, 2013 at 06:04 UTC |
In Section
Seekers of Perl Wisdom