Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

February 01, 1998 12:00 AM

Executable Perl Scripts

Windows IT Pro
InstantDoc ID #2945
Rating: (0)

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.

Related Content:

ARTICLE TOOLS

Comments
  • Chintan
    9 years ago
    Nov 03, 2003

    very useful and very industry oriented article

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.