473,394 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to convert perl program into .com file

parajaganesh
I am a new man to Perl. Anybody can help me to convert a perl program into .com format.
Aug 22 '07 #1
2 2232
miller
1,089 Expert 1GB
I don't believe that there are any utilities that will do this directly.

However, there is a file pl2bat.bat that is included with ActivePerl that you can use to translate a perl script into a bat file. You can then translate the bat file to a com file if you wish. Although I expect that a bat file should be sufficient for most purposes.

Honestly though, I would avoid doing either of these things. If all you want is to be able to invoke the perl script easily, then just create a bat file that will invoke perl and the script. That way any changes you make to the script won't require an update to the bat and then update of the com.

- Miller
Aug 22 '07 #2
numberwhun
3,509 Expert Mod 2GB
I don't believe that there are any utilities that will do this directly.

However, there is a file pl2bat.bat that is included with ActivePerl that you can use to translate a perl script into a bat file. You can then translate the bat file to a com file if you wish. Although I expect that a bat file should be sufficient for most purposes.

Honestly though, I would avoid doing either of these things. If all you want is to be able to invoke the perl script easily, then just create a bat file that will invoke perl and the script. That way any changes you make to the script won't require an update to the bat and then update of the com.

- Miller
There is also perl2exe by IndigoStar, but I have never used it and don't know how well it works. I also highly agree with Miller. Create the batch file to do it for you. Everyone I have seen discuss these programs says that they don't do the job correctly and you end up having miscellaneous issues.

Regards,

Jeff
Aug 22 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Xah Lee | last post by:
# -*- coding: utf-8 -*- # Python # to open a file and write to file # do f=open('xfile.txt','w') # this creates a file "object" and name it f. # the second argument of open can be
3
by: sir.linying | last post by:
My php script is to call perl scipt which makes use of Spreadsheet::ParseExcel module to parse Excel file. I am able to launch php script from command line so that perl script can run and properly...
0
by: brakesh | last post by:
Hi, I am trying to call a perl program (that connects a webserver database) from a php program via a webbrowser. For example : http://development.noaa.gov/test_exec.php?dataid=8313. The...
1
by: terryskorski | last post by:
After reading the tutorial about the Perl Database Program: Perl Database Tut. I was wondering if anyone could help me have it interface with a MySQL database instead of storing information in...
5
by: sangith | last post by:
Hi, How do I convert a word document into a text file. (For eg: If I give input as file1.doc, my Perl program should automatically convert it into file1.txt) Is there any Perl module which does...
32
by: poolboi | last post by:
hi guys, i've read a lot of thread of converting excel data into CSV files. however, i need a perl script to convert CSV file into excel file now, if required modules is needed, it would be...
5
by: Davo1977 | last post by:
Analysing text files to obtain statistics on their content You are to write a Perl program that analyses text files to obtain statistics on their content. The program should operate as follows: ...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.