Yea! I got it to work!
I saved as "Unicode big endian" rather than "Unicode". I don't know what the difference between these two formats are but it is working now.
Thanks for all of the help everyone!
I think that I am getting close. I have been selecting "all files" instead of .txt when saving notepad files. I am also saving in Unicode.
I get the following error message:
panic: utf16_to_utf8: odd bytelen 47 at C:\Perl\myperl\example3.pl line1.
What does this error message mean?
And...
Okay, I can see that I need to remove the .txt from the end of the file names because with it, the files are not run; rather, the files are opened.
So, I am sorry to be asking such rudimentary questions but how do I change the settings such that .txt is no longer automatically added to the end...
Ishnid,
I followed your instructions and yes, they do have .txt following .pl
What do you think that should I do to determine if this is the problem and how might I fix it?
Thanks.
I want to isolate the problem.
Can I type simple programs directly into perl and thereby bypass the file finding step?
Can I download a simple to use an online text editor that is quite robust or open programs directly from the web and use an online text editor exclusively?
Thanks!
Thanks Paul. That makes sense but my simple programs are not running even when I specify the path.
The example program that downloaded with Activeperl does run, though.
So, I am wondering if I am having a text editing problem. Is there a simple way be sure that my files are not only...
Well, I am beginning to better understand how my computer works but it still isn't working.
I created a new file and named it myperl. I placed it in the perl folder.
The path is:
C:\perl\myperl
When I try to open example2.pl (see above) I still get the following message:
'example2 is not...
I tried it.
I copied the program from the above post and pasted it into an open notepad page. I saved the page as: example2
When I tired to open it with Perl, I got the following response:
'example2'is not recognized as an internal or external command, operable program or batch file...
Hi,
I am new to programing. I hope that I have found the right place.
I have installed Activeperl and I can run the sample program but I can not run any of my own programs.
My first question is, does it matter where on C: I save my programs?
Thank You!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.