in reply to Re^2: Newbie cmd prompt problem
in thread Newbie cmd prompt problem

Perl preaches there's more than one way to do it ... but that's completely the wrong way to do it.

Go to "Start" -> "Run" and enter 'cmd' (without the quotes) and press the "OK" button

Get familiar with Command Prompt (DOS) commands like 'cd' to change directory into the directory where your Perl script is. From there, type:

C:\> perl myscript.pl

where 'myscript.pl' is the name of your Perl script.

Alternatively, add the line:

system "pause";

as the very last line in your Perl script. That's the "poor man's way" of keeping the Command Prompt open when you double-click a Perl script to run versus running it from the command line.

Replies are listed 'Best First'.
Re^4: Newbie cmd prompt problem
by nquiton (Novice) on Sep 12, 2013 at 00:26 UTC
    I think I figured out the problem. BTW, lol, I was alive in the DOS days. I was even alive in the Apple 2E days. (age give away) So yes, I do know how to get into to and work with the cmd line. But here is what I figured out. Apparently when naming your files you should not use spaces. When I changed the file name and removed my spaces it ran. Now I know for sure I'll never be a programmer because I have LOTS of errors:-) Thank you for your help!