If I run on my perlown from the linux command line, nothing happens. I see that the cursor moves along the line, and if I enter print "Hello, world";, nothing happens anyway. Is there anything I can enter from the command line? I know that you can run perl -e 'print "Hello, world"';and how to create a perl script. Just wondering why the launch perlitself does nothing.
perl
print "Hello, world";
perl -e 'print "Hello, world"';
Enter the following:
$ perl print "Hello World\n"; Ctrl-D Hello World $
In the last line, you hold down the control key and press D. Without typing Ctrl-D.
D
stty -a, , Ctrl-D - EOF. Perl STDIN. , ?
stty -a
(Windows, cmd shell), perl, STDIN, Ctrl-Z, . :
C:\perl>perl $a = "asd"; print "\$a = '$a'"; ^Z $a = 'asd' C:\perl>perl use Data::Dumper; print Dumper [ 3.14 ]; ^Z $VAR1 = [ '3.14' ];
, cmd .
perl Linux, perl , @david-w
Perl, perl perl -d -e 42 Perl Shell (psh).
perl -d -e 42
perldoc perlrun perldoc perldebug .
perldoc perlrun
perldoc perldebug
Try:
perl -e "print 'Hello World';"
perl . ( , , )
I think you are looking for perl shell .. aka PSH
https://metacpan.org/pod/distribution/psh/doc/psh.pod