try
echo 'print "Hello Perl\n"' | perl

perhaps you're thinking of pythons REPL ?

I sort of like
perl -de 1
to interact with perl


On Thu, Apr 17, 2025 at 8:53 AM Michael via Cygwin <cygwin@cygwin.com>
wrote:

> After running cygwin-setup and updating all cygwin-packages, perl no
> longer seems to work (or maybe a coincidence).
>
> Executing "perl" without any argument normally let perl wait for input
> from stdin/keyboard.
> But it immediately returns to the prompt (same behavior as 'echo ""').
> I can do
> perl
> perl -v
> perl -e 'print "Hello Perl\n"'
>
> same result for all 3 of them (equal to 'echo ""').
>
> $ which perl
> /usr/bin/perl
>
> $ file `which perl`
> /usr/bin/perl: PE32+ executable (console) x86-64, for MS Windows, 12
> sections
>
> $ cygcheck -c perl
> Cygwin Package Information
> Package              Version    Status
> perl                 5.40.2-1       OK
>
> downgraded to previous version - same result.
>
> $ cygcheck -c perl
> Cygwin Package Information
> Package              Version    Status
> perl                 5.40.1-1       OK
>
> executing e.g. sed or awk return the "Usage:"-page as normal
> any idea?
>
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to