Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


February 1998

Executable Perl Scripts


RSS
Subscribe to Windows IT Pro | See More Task Automation Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Managing NT Event Logs with Perl for Win32: Part 1

Perl is an interpreted language. Any script you write requires the presence of the Perl interpreter (perl.exe and perl300.dll) and any external libraries your script uses. If you want to run Perl scripts on your Windows 95 or Windows NT Workstation clients, you'll need to install Perl for Win32 on each client machine. Or will you?

Mercury Systems offers a command-line utility called Perl2Exe that converts Perl scripts to executable (.exe) files. You can download a demo copy of Version 2.04 from the Perl2Exe Home Page (http://www.demobuilder.com/
perl2exe.htm).

Perl2Exe's magic is simple. The utility packages the Perl interpreter, any external libraries, and your Perl source into one binary executable. When you invoke the executable on a system that doesn't have Perl installed, the executable extracts the necessary images and invokes the script. However, this ability comes with a price. Every Perl2Exe executable weighs in at a hefty 600KB+ based on the size of the embedded Perl interpreter. This fact might make you think twice before deploying a Perl2Exe executable as part of your logon process.

Perl2Exe does have some benefits. For example, it protects your Perl source code; the only visible files on a host running a Perl2Exe executable are the external libraries. Perl2Exe also makes scheduling Perl scripts easier. This utility is worth considering if you're opposed to distributing Perl to all your servers and clients or if you're in a situation that prevents you from distributing Perl to all your servers and clients.

End of Article



Reader Comments
very useful and very industry oriented article

chintan November 03, 2003


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Battery Life Issues Almost Certainly Not Windows 7's Fault

While Microsoft is still investigating a notebook battery life issue that was supposedly caused by Windows 7, some interesting trends have emerged. ...

Confirmed: Battery Life Issues Not Windows 7's Fault

Microsoft on Monday issued a lengthy statement about the recent Windows 7 battery controversy, echoing my assessment from earlier in the day, but backing it up with hard, cold evidence. ...

Microsoft Warns of Windows Version Expirations

Microsoft warned that this year will see three out-of-date Windows versions slip into retirement. ...


Task Automation Whitepapers Three Ways to Prevent Insider Risk within Your SCCM-Managed Environment

From Development to Production: Streamlining SharePoint Deployment with DocAve Deployment Manager

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Check out our list of Free Email Newsletters!

Task Automation eBooks Spam Fighting and Email Security for the 21st Century

A Guide to Windows Certification and Public Keys

Keeping Your Business Safe from Attack: Patch Management

Related Task Automation Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2010 Penton Media, Inc. Terms of Use | Privacy Statement