in reply to Questions about about what happens after user input

First of all, no one is dumb. You are clearly showing some sign of intelligence by declaring defeat, and moreover, asking for help.

As far as your question, I tried your code and it appears works fine.

Justin

Janitors note: Parent node was retitled by author from "i know, im a retard. dont make fun."

  • Comment on Re: Questions about about what happens after user input

Replies are listed 'Best First'.
Re^2: Questions about about what happens after user input
by jpk236 (Monk) on Feb 06, 2005 at 05:19 UTC
    I apparently was not logged in. :(

    Justin
      Justin, what im learning is that... with my windows operating system... i have to use activeperl and that is different from all of the other operating system's interpriters...

        Ok, that was relevant information. I'm inferring that you're just clicking on your .pl file ... which can work, but isn't exactly the best way to test/debug your perl code. (Nor is using wordpad or notepad the best editor for programming in - you may want to check out other editors. Just asking about favourite programming editors may get a lot of --'s thrown about - it's a very religious topic in most programming circles, so it's usually avoided.)

        Hit Start->Run and type "cmd". From there, run your perl script (you may have to cd to the right directory - and you may need to run it as "perl <script.pl>"). When it's done, you'll get your command prompt back, and still be able to see everything the perl code did.

        Other alternatives include putting another "my $junk = <STDIN>;" at the end of your code which will cause the program to pause until you hit enter. But, IMO, programmers should become friendly with the command shell - it's just too useful to avoid.

        Rob, I've been following your travails in the chatterbox. You are double-clicking on the icon and it is running as a Windows program. It is closing as soon as it gets the name. Run the program as a commandline program from a command line window (dos window). You will do fine.