strange problem with STDIN- need help
- From: poonam.pahil@xxxxxxxxx (Poonam Pahil)
- Date: Thu, 29 Dec 2005 15:52:37 +0530
Hi,
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 )
Thanks & Regards
Poonam
- Follow-Ups:
- Re: strange problem with STDIN- need help
- From: Dr.Ruud
- Re: strange problem with STDIN- need help
- From: Paul Lalli
- Re: strange problem with STDIN- need help
- From: Owen Cook
- Re: strange problem with STDIN- need help
- Prev by Date: Re: Each char / letter --> array from string value
- Next by Date: Re: getting a time diff from strings
- Previous by thread: getting a time diff from strings
- Next by thread: Re: strange problem with STDIN- need help
- Index(es):
Relevant Pages
|
|