For Quality purpouses, Joel 's mail on Saturday 31 January 2004 00:26 may have been monitored or recorded as:
Hi, > I'm interested in learning to program perl, and I just got ActivePerl for > Windows. I am running XP and have a few questions. First off, how do I run > the interpreter under Windows, preferably without the XP command prompt? if you used the standard installer that ships with activeperl with the preselected options it will have set a) the path variable to the perl/bin directory b) the association of .pl files with the interpreter. (You may do both yourself under Systm Properties->Advanced->Environment Variables for a) and under Folder Options in the tools menue of the explore->File Types). Once .pl files are assoc. with perl, dubble click on script.pl will open a Command Prompt and feed your script to perl, which will subsequently run it. However, youll probably only see any output if you script doesnt terminate without interaction, eg., waits for your input as its last action or so (or takes some time). Thats not a problem if you call perl with your script manually from a cmd prompt (not the run thing under Win). > Also, when I opened perl, it looked like the command prompt. Is the command > prompt accesable through perl? I dont understand that question. Maybe thats the effect described above: your script is to quick for you to and once it ends it also terminates the promptwin (winOS does that, actually). >Finally is the "#!usr/bin/perl line > necessary under XP? Nope - but usefull. it doesent do anything on Win (since the first line starting with #! isnt interpreted by command.com as it is by bash, sh or whatever shell on *NIX and perl ignores it as a comment. Put it keeps your scripts portable (eg, for the users of this list). Enjoy looking around, Wolf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>