Hello everyone. I am planning on doing some Perl and Python coding since they are going to be the native languages since I am deleting Windows. I need help getting to Perl though. I know Python has a Shell which I am using now to program, but I don't know of anything like that for Perl. I am learning Perl and using SciTE to edit the programs, but, when I try to execute them in terminal with the commands below it gives me errors. I will paste all the information below.
TestPerl Program coding:
Code:
#!usr/bin/perl
print "Hello!"
Terminal Conversation:
Code:
tommy@ubuntu:~$ chmod +x /home/tommy/Desktop/TestPerl
tommy@ubuntu:~$ ./TestPerl
bash: ./TestPerl: No such file or directory
tommy@ubuntu:~$ /home/tommy/Desktop/TestPerl
bash: /home/tommy/Desktop/TestPerl: usr/bin/perl: bad interpreter: No such file or directory
I marked the file as executable, but when I hit Run In Terminal it just opens and closes really fast.
Thanks,
Tom
Bookmarks