Re: strange problem with STDIN- need help
- From: krahnj@xxxxxxxxx (John W. Krahn)
- Date: Fri, 30 Dec 2005 00:57:47 -0800
Poonam Pahil wrote:
> i managed to figure out the cause.
> i was undefining $/ .I wanted to use slurping technique.i.e reading in a
> small file in a variable & then making the changes.
>
> Ive now undefined this within a local context.
> Its working fine now.
> anyone has an idea how this is affecting <STDIN>.
Yes, I do. readline() is waiting for EOF on the STDIN filehandle.
> I tried using $|=1 but that did not help.
That is because setting $| only effects the currently selected filehandle
which is STDOUT by default.
John
--
use Perl;
program
fulfillment
.
- References:
- RE: strange problem with STDIN- need help
- From: Timothy Johnson
- Re: strange problem with STDIN- need help
- From: Poonam Pahil
- RE: strange problem with STDIN- need help
- Prev by Date: Re: strange problem with STDIN- need help
- Next by Date: Re: Plotting a 2D chart
- Previous by thread: Re: strange problem with STDIN- need help
- Next by thread: Installing Perl
- Index(es):