On Tue, 5 Apr 2005, beau wrote: > Not sure where the problem is, and am not having luck with the > archives. I've got a little dummy script > > <--begin quoted--> > #!/usr/bin/perl > > $foo = <STDIN>; > > print $foo . "\n"; > <--end quoted> > > It just sits and spins until I kill it. I tried "export > PERLIO=perlio" in my .bashrc, but maybe that just displays an > unflattering willingness to try things I don't totally dig. Of > course, $foo = "constant"; worked just fine. > > Will beg for clues.
What exactly is the behavior you get, and what did you expect? Of *course* it would sit and spin there until you enter exactly one line of text... Once that happens, the script exits just fine (for me, at least). Try invoking it as echo "Blah" | ./dummy.pl if you don't want to input from a terminal. If the above doesn't work for you, we'll need to debug further. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/