<STDIN> kills Padre 0.84 on execution

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

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Sayth Renshaw [ So, 12 Juni 2011 15:08 ] [ ID #2060947 ]

Re: <STDIN> kills Padre 0.84 on execution

On 12/06/2011 14:08, Sayth Renshaw wrote:
>
> 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 ";

If you go to Tools / Preferences / Run Parameters and check 'Use
external window for execution' then Padre will start up a new cmd window
for execution which will respond as you expect.

Rob

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Rob Dixon [ So, 12 Juni 2011 16:45 ] [ ID #2060948 ]

Re: <STDIN> kills Padre 0.84 on execution

> If you go to Tools / Preferences / Run Parameters and check 'Use
> external window for execution' then Padre will start up a new cmd window
> for execution which will respond as you expect.
>
> Rob
>

Thanks.

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Sayth Renshaw [ Mo, 13 Juni 2011 01:23 ] [ ID #2060992 ]
Perl » gmane.comp.lang.perl.beginners » <STDIN> kills Padre 0.84 on execution

Vorheriges Thema: Trouble building File::BSDGlob.pm
Nächstes Thema: using Perl, How to search for files in my computer