Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I execute Perl on Windows (XP Home Edition)

Status
Not open for further replies.

quazia83

Programmer
Aug 31, 2004
15
US
Hi. Im new to programming. Im currently trying to teach myself how to program with Perl on both windows and unix. I fine on the unix system but i cant seem to execute a perl program on windows. i searched around on google but nothing worked so far. i think i have to convert the perl file into a batch file. no luck there. also....i am looking for tips on how to use ActivePerl as well. thank you in advance.
 
download "ActivePerl" (it's free) and it will let you run ".pl" files by registering the file type and executing the interpreter by clicking on them, or you can type the name in the ms-dos prompt (command line)
 
see, the thing is i dont know how to change the file that i write into a .pl file. windows creates a .txt file. ive tried just changing the extentions, that doesnt work. its easier in unix to just change the permissions and to put the shabang line up top. windows doesnt accept that. i already downloaded activeperl. i dont know how to run it. should i download activeperl pro??
 
Sounds like you haven't read the documentation that comes with ActiveState Perl. See this thread: thread219-898677

When you save your Perl programs (I guess you're using Notepad or Wordpad), save them with .pl extensions instead of .txt (or change the extension later).

ActiveState Perl comes with a program called pl2bat that will make a .bat file from a Perl script (covered in the documentation).
 
ok thanks, i guess i should learn to love reading more often. to me reading is the worse part of learning.
 
Well your right, you should learn to love reading - especially about perl. Perl documentation is second to none and perl books are not only technically superb, but an excellent source of humour as well.
 
greadey,
excellent source of humour as well.

Sounds like clutchin' for a free book
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top