How do I run a Perl program? A beginner's guide to getting started

18 Replies, 1463 Views

Wow, thanks so much, everyone! I tried `perl hello.pl` again, and it worked after fixing a missing semicolon (facepalm). I also ran `perl -w hello.pl` like some of you suggested, and it helped me catch another typo.

Quick question: Is there a way to make my script executable so I can just type `./hello.pl` instead of `perl hello.pl`? I saw someone mention `chmod +x`, but I’m not sure how to use it.

Also, thanks for the IDE suggestions—I’ll check out VS Code with Perl extensions. You guys are awesome!

Messages In This Thread



Users browsing this thread: 1 Guest(s)