Samurai Monkey has asked for the wisdom of the Perl Monks concerning the following question:
and I save it as "newline.pl" Unfortunately, when I open up the terminal in Ubuntu, it doesn't work. I typed in perl begperl/newline.pl I specified begperl as the folder because that's where it is located. However, I get this message back: "Can't open perl script "begperl/newline.pl": No such file or directory" I then tried writing the code as print "Hi mom. This is my second program." and saved it as newline.pl and still I got the same message returned to me as: "Can't open perl script "begperl/newline.pl": No such file or directory" That's funny to me because when I created helloworld.pl that is the same folder where I saved it in, and it worked just like it was supposed to. I'm not sure as to why it's not working now. When I type in perl begperl/helloworld.pl it still works fine, I get the message, Hello World! What am I doing wrong? Thank you for your suggestions in advance - it's highly appreciated :)#!/usr/bin/perl use warnings; print "Hi Mom.\nThis is my second program.\n";
|
|---|