Hi I'm trying to learn scripting using Perl, but I'm having a rough start. I'm just trying a "hello world" first example, but I can't seem to get anything. I'm using Strawberry Perl, and here is the syntax I have saved in a notepad titled 'hello.pl':
#!/usr/bin/perl
print "hello world\n";
When trying to launch the script through dos using: 'perl hello.pl' I get the following response:
"Can't open perl script "hello.pl": No such file or directory"
I have the file on my desktop, and changed directories in dos to my desktop, and still have nothing.
Any ideas?
#!/usr/bin/perl
print "hello world\n";
When trying to launch the script through dos using: 'perl hello.pl' I get the following response:
"Can't open perl script "hello.pl": No such file or directory"
I have the file on my desktop, and changed directories in dos to my desktop, and still have nothing.
Any ideas?