That's not how you one-liner, playa. When I drop the line
#!/usr/bin/perl use strict; use warnings; print "Hello, World...\n"; directly in the commandline I get nothing also because
# is a comment and there's no
shebang evaluation in the interactive prompt. Throw that mess in a file:
#!/usr/bin/perl
use strict;
use warnings;
print "Hello, World...\n";
Set it executable,
chmod 700 hello.pl, then run it with
./hello.pl.
If that's not it I have no idea what you're doing because any other interpretation of your post would throw an error from something. Putting it in a file will at least give you a feedback if that's not where your perl is located.