Oct 26, 2013, 3:08 PM
Post #34 of 34
Well, after a couple uninstalls and reinstalls, I got to the bottom of my problem. When I ran my first Perl program I got an error saying " 'program.plx' is not recognized as an internal or external command, operable program or batch file." Upon seeing this I recognized what I thought the problem was and that being the same as one from back in my old DOS days. Since I was running the program from a different directory than where Perl was located it wouldn't run. So I went into the windows directory where the program was located and associated it with Perl. End of my problem. So when I ran each program from the command line they worked. That is until chapter 6. So when it came time to run "nl2.plx nlexample.txt", that is exactly what I typed.
Re: [FishMonger] Question on book "Beginning Perl" and running examples
[In reply to]
The book read "> perl nl2.plx nlexample.txt", but my mind processed that as "perl>nl2.plx nlexample.txt". I reread the line countless times before I finally saw it. When I finally typed the all important command "perl" before program, they all started working. End of problem.
Thanks to all for your input and help even though it was a typo on my part. The reason that I explained my problem here is that if it happened to me, it just might happen to someone else and perhaps someone will remember this.