How do you type and then (execute/run) Perl statements directly in the Perl shell/interpreter?
First, I'm on Windows... and I have Strawberry Perl (v5.32.1) built for MSWin32-x64-multi-thread installed.
So, if I type at the command line, just :
perl
... it appears to enter into a Perl "shell/interpreter", but if I enter some Perl statements :
my $greeting = "Hello World :-)\n";
print($greeting);
... how do I make it then "execute/run" those two statements?
If I Ctrlc, then it just says: Terminating on signal SIGINT(2)
If it matters, the reason I'd like to do this is so that I can just test Perl language as I'm learning about Perl.