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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>