Getting Started with Perl

Avatar
  • Answered
Where do I put perl scripts? How do I invoke them from the web? Are any sample perl scripts available that should work on the InMotion servers?
Avatar
Arn
Hello Chambe31, Running a PERL script is similar to running a script in HTML. For example, you can call a script to run when using a form. As per the previous replies, you will see that your script needs to start with the shebang (#!/) - for more information on PERL in cPanel, check out this documentation from cPanel.
Avatar
chambe31
The perl script can be anywhere.
1st line should be:
#!/usr/bin/perl or #!/usr/local/bin/perl - both work for me.
KEY is, permission on the .pl file must be 755

Jim
Avatar
johnpaulb-imhs1
Hello beaglelady, Thank you for your question. Here is a link to our tutorial on installing a Perl module in cPanel. Then I recommend the Learn Perl site, since it includes tutorials from beginner to advanced levels. If you have any further questions, feel free to post them below. Thank you, -John-Paul