This is the mail archive of the
mailing list for the Cygwin project.
Re: perl, cygwin or caffeine
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: beau <phaedral at gmail dot com>
- Cc: cygwin at cygwin dot com
- Date: Tue, 5 Apr 2005 22:03:10 -0400 (EDT)
- Subject: Re: perl, cygwin or caffeine
- References: <firstname.lastname@example.org>
- Reply-to: cygwin at cygwin dot com
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-->
> $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.
|\ _,,,---,,_ email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ firstname.lastname@example.org
|,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