develooper Front page | perl.beginners | Postings from June 2011

<STDIN> kills Padre 0.84 on execution

Thread Next
From:
Sayth Renshaw
Date:
June 12, 2011 06:08
Subject:
<STDIN> kills Padre 0.84 on execution
Message ID:
BANLkTi=Z8tG744WV_udJfakG0Q9644oZNg@mail.gmail.com
I created a simple script to test whether the Padre output console
would except input via <STDIN>. After creating the script I pressed
F5; no output is put to the console. I waited about 30 seconds - 1 min
still nothing I stopped the process executing.

This was the script.

#!/usr/bin/perl

print " Give me a word then I'll go to bed: \n";
my $phrase = <STDIN>;
print " $phrase ";

Replacing the <STDIN> with a string and Padre works again. Is this
intended or known behaviour? I am using 0.84.

This script works

#!/usr/bin/perl

print " Give me a word then I'll go to bed: \n";
my $phrase = "Howdy Partner \n";
print " $phrase ";


sayth

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About