Re: strange problem with STDIN- need help



if($remove_CS =~ m/n/i ){ ??? }
it does not reach to this point.

it hangs before this, at
my $remove_CS = <STDIN>;


thanks
poonam

On 12/29/05, Owen Cook <rcook@xxxxxxxxxxx> wrote:
>
>
> On Thu, 29 Dec 2005, Poonam Pahil wrote:
> >
> > Iam using <STDIN> 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 script everything works fine.
> >
> > iam using system() a lot. directing input/output to/from files. can this
> be
> > the reason.
> >
> > This is the piece of code:
> >
> > print "Do you want to remove this CSpec(y/n):";
> > my $remove_CS = <STDIN>;
> > chop($remove_CS);
> > if($remove_CS =~ m/n/i )
>
>
> What happens after the if statement
>
> if($remove_CS =~ m/n/i ){ ??? }
>
>
> Owen
>
>


Relevant Pages

  • Re: strange problem with STDIN- need help
    ... On Thu, 29 Dec 2005, Poonam Pahil wrote: ... > it hangs before this, ... owen@ubuntu:~/Perlscripts$ perl -c stdin.pl ... Prev by Date: ...
    (perl.beginners)
  • Search not working
    ... For some reason my SEARCH will no longer respond. ... require but once I initiate it it just hangs, ... Prev by Date: ...
    (microsoft.public.windowsxp.general)