RE: Brand New Perl Beginner - trouble using activePerl
try opening a command prompt in the directory with the perlscript and type in the name of the perl script: c:\scripts test.pl -Original Message- From: Larry [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 6:01 PM To: [EMAIL PROTECTED] Subject: Brand New Perl Beginner - trouble using activePerl Hey ))) I am learning perl now for use with CGI. I installed active Perl on both windows Millenium AND windows XP systems. Both of the fail to run a .pl file. I see a window flash on the screen for a part of a second and then disappear.the window looks like it is a DOS command window. Anyway, I do not see the program run. Of course I am doing something very basic wronganyone know what it is??? Thanks !!! -Larry south dakota, US -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Brand New Perl Beginner - trouble using activePerl
Try running the script from a command promt window (Start Run cmd.exe) using perl scriptname.pl so that if there is an output, you see it. Also try to use perl -w scriptname.pl to locate possible bugs - Original Message - From: Larry [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 01, 2002 12:01 AM Subject: Brand New Perl Beginner - trouble using activePerl Hey ))) I am learning perl now for use with CGI. I installed active Perl on both windows Millenium AND windows XP systems. Both of the fail to run a .pl file. I see a window flash on the screen for a part of a second and then disappear.the window looks like it is a DOS command window. Anyway, I do not see the program run. Of course I am doing something very basic wronganyone know what it is??? Thanks !!! -Larry south dakota, US -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Brand New Perl Beginner - trouble using activePerl
I am learning perl now for use with CGI. I installed active Perl on both windows Millenium AND windows XP systems. Both of the fail to run a .pl file. I see a window flash on the screen for a part of a second and then disappear.the window looks like it is a DOS command window. Anyway, I do not see the program run. Of course I am doing something very basic wronganyone know what it is??? Thanks !!! If you want your program to pause during execution if, for example, you have a lot of output you could insert statements like this: { my $trash = STDIN; } What this does is waits for you to hit enter and takes whatever you typed (if anything) and puts it into the variable $trash, which then goes out of scope because the block it's in ends. Sometimes when I want to quit out of a loop, I'll do: { my $trash = STDIN; last if $trash =~ /q/; exit if $trash =~ /x/; } But the more simple example will probably work for what you want. Hope that helps, -dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Brand New Perl Beginner - trouble using activePerl
From: Larry[SMTP:[EMAIL PROTECTED]] Hey ))) I am learning perl now for use with CGI. I installed active Perl on both windows Millenium AND windows XP systems. Both of the fail to run a .pl file. I see a window flash on the screen for a part of a second and then disappear.the window looks like it is a DOS command window. This was the script running. Go to Start run and type cmd run it. Then type the path name to the file you want to execute. This means that STDOUT will be to the console screen and it will look as if it is running. Anyway, I do not see the program run. Of course I am doing something very basic wronganyone know what it is??? Thanks !!! You did not do anything wrong. Put this in a .pl file and double click on it the way you did earlier #!perl while(1){ print STDOUT BOLLOCKS; sleep(1); } You will notice now that the dos console does not disappear. H __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Brand New Perl Beginner - trouble using activePerl
On Tue, 30 Apr 2002, Larry wrote: Anyway, I do not see the program run. Of course I am doing something very basic wronganyone know what it is??? Thanks !!! What program is it? You likely won't see it do much in the GUI in the normal course of things, as Perl will usually do things to and from the command line (if you're trying to execute a .pl file as you seem to be doing). If you explain what it is you're trying to do, answers may be more forthcoming... Michael -- Absolute power corrupts absolutely, which is a problem... If you're powerless. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]