This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: perl, cygwin or caffeine

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" | ./

if you don't want to input from a terminal.
If the above doesn't work for you, we'll need to debug further.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,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:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]