Re: strange problem with STDIN- need help

2005-12-30 Thread John W. Krahn
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 aff

Re: strange problem with STDIN- need help

2005-12-30 Thread Poonam Pahil
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 . I tried using $|=1 but th

RE: strange problem with STDIN- need help

2005-12-29 Thread Timothy Johnson
Try adding this line to the top of your script: $| = 1; This sets STDOUT to autoflush the buffer. You may be trying to print something that just isn't showing up. -Original Message- From: Poonam Pahil [mailto:[EMAIL PROTECTED] Sent: Thursday, December 29, 2005 2:23 AM To: beginners@pe

Re: strange problem with STDIN- need help

2005-12-29 Thread Dr.Ruud
Poonam Pahil schreef: > Iam using to accept user input but the script just hangs at > that point. perldoc -q waiting -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: strange problem with STDIN- need help

2005-12-29 Thread Owen Cook
On Thu, 29 Dec 2005, Poonam Pahil wrote: > if($remove_CS =~ m/n/i ){ ??? } > it does not reach to this point. > > it hangs before this, at > my $remove_CS = ; > > Well this works for me cut #!/usr/bin/perl -w use strict; print "Do you w

Re: strange problem with STDIN- need help

2005-12-29 Thread Poonam Pahil
if($remove_CS =~ m/n/i ){ ??? } it does not reach to this point. it hangs before this, at my $remove_CS = ; thanks poonam On 12/29/05, Owen Cook <[EMAIL PROTECTED]> wrote: > > > On Thu, 29 Dec 2005, Poonam Pahil wrote: > > > > Iam using to accept user input but the script just hangs at that

Re: strange problem with STDIN- need help

2005-12-29 Thread Owen Cook
On Thu, 29 Dec 2005, Poonam Pahil wrote: > > Iam using to accept user input but the script just hangs at that > point. > I type in the value & program is just stuck at that point. > > i know its got to do with buffer flushing. when iam using the same piece of > code at the beginning of the scri