0

I have asked a similar question elsewhere but it eventually evolved into a series of comments. So once again, what package should I install to see the following prompt > after running perl but now not raku (all under Cygwin)?

enter image description here

EDIT -l doesn't work either.

enter image description here

EDIT 2 Perl -d -e1 doesn't work for me either (Answer in comments as this question is closed):

enter image description here

user2925716
  • 949
  • 1
  • 6
  • 13
  • Usually just pressing enter after running a piece of code that does not print a newline will display a prompter. Or you can use the -l option. – TLP May 29 '21 at 16:47
  • @TLP Please see my **EDIT**. – user2925716 May 29 '21 at 17:05
  • 1
    PRobably you are looking for https://stackoverflow.com/questions/73667/how-can-i-start-an-interactive-console-for-perl – matzeri May 29 '21 at 17:25
  • It seems like you are opening a program, which expects end of file to end. You should show what you are doing to enter this mode. – TLP May 29 '21 at 18:14
  • Re "*I have asked a similar question elsewhere*", No, that was about a completely different program. /// Re "*it eventually evolved into a series of comments*", Debugging a problem requires info. If that info is not provided by the question, it must be requested. – ikegami May 29 '21 at 19:24

1 Answers1

4

You didn't provide the name of a program, and you didn't provide a program via the -e or -E command line options, so it's reading the program from STDIN.

perl does have a builtin debugger that you access by passing -d, but you still need to provide a program. (You can provide a trivial one using -e1.)

See How can I start an interactive console for Perl? for alternatives.

ikegami
  • 367,544
  • 15
  • 269
  • 518