473,586 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opening programs with perl...

2 New Member
So I am new to using Perl, and I am trying to create a Perl program to open a previous Perl program (one I already created) with Perl. what does the script look like/ or what are the commands I have to use for this operation? I am doing this on my PC using windows 2003. Any help would be much appreciated!

Thanks,

>>
Jul 3 '08 #1
3 1603
numberwhun
3,509 Recognized Expert Moderator Specialist
Let me get this right, you want to run a Perl script from another Perl script? Is the calling Perl script going to do more than just the script call? If so, you can do:

Expand|Select|Wrap|Line Numbers
  1. system("/script/to/run");
  2.  
If you look up the system() function on Perldoc, you will get a more definitive description.

Regards,

Jeff
Jul 3 '08 #2
mjg2004
2 New Member
Sorry I was a little unclear on what I am doing, actually (I am very unclear on Perl alone lol) but anyways... I created a Perl script "hello world" named hello.plx it is located in C:\Perl\Perl Programs, now what I am looking to do is create another Perl script to open my hello.plx script....so would that line of code you provided still be correct?

Thanks,

>>
Jul 3 '08 #3
numberwhun
3,509 Recognized Expert Moderator Specialist
Sorry I was a little unclear on what I am doing, actually (I am very unclear on Perl alone lol) but anyways... I created a Perl script "hello world" named hello.plx it is located in C:\Perl\Perl Programs, now what I am looking to do is create another Perl script to open my hello.plx script....so would that line of code you provided still be correct?

Thanks,

>>
Yes, it would still be correct, but again, verify the syntax on Perldoc.

What is the extension "plx" from? Normally you use a '.pl' extension for Perl scripts.

Regards,

Jeff
Jul 3 '08 #4

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

Similar topics

4
2455
by: MJL | last post by:
Suppose you have a perl program that is called by a web page to generate another web page. The program is written to load data from a text file on the server and make certain substitutions in the loaded text prior to the output of html. If one user is on the site, it should not be a problem. If many users try to access it nearly...
1
2049
by: rk | last post by:
Hi, I'm trying to write a cgi/perl programs to post a report like the following format in which the the user has to feed the values(nos) in the boxes under % Done Qual Rel. Stab P1 p2 P3.... and boxes under
10
4440
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat Enterplise Linux 3 ES, and applied FixPack fp5_mi00069.tar to it. After creating an instance, starting the database, creating a database, and entering...
4
2489
by: kj | last post by:
I consider myself quite proficient in C and a few other programming languages, but I have never succeeded in understanding a largish program (such as zsh or ncurses) at the source level. Basically, I quickly become disoriented, losing sight of the forest for the trees. What's your approach for understanding a large program at the source...
0
1926
by: sandeep ch | last post by:
hi , I am opening a excel sheet from perl but every time i run the program i get a pop up message saying that "This Workbook contains links to other sources" " - To update all linked information , Click yes." " - To kepp the existing information,click no." and asks me to choose "yes" or "no". i want to disable this pop up. i have tried...
8
15676
by: VinayKumarParakoti | last post by:
Hi all, I am new to this site and this is my first post. But this issue is of high priority. I am trying to print pdf file in browser using perl script. Onclick on hyperlink a child window is opened along with through javascript i have redirected to perl.In perl i am doing something like this, print "Expires -1\n\n"; print...
3
1401
by: sangith | last post by:
Hi, I am working as a software test engineer(testing docsis compliant devices like cable modem). I have done Perl programming involving hashes, files, regex and modules. But right now, I have to automate a task which involves opening a socket. (which I have not done before) Here is the problem:- From my Linux server, I have to open a...
1
6174
by: mohanprasadgutta | last post by:
Hi, I need help to open a password protected excel file in perl using Win32:OLE. when I tried to open file in normal way at the time of program execution it is prompting me to enter password. I am giving the script i used for opening excel file.. So i want to know how to provide password parameter while opening the file. use strict; use...
1
1227
by: zcabeli | last post by:
Hello, i've encountered a script which has the following code line on top: eval '(exit $?0)' && eval 'exec perl -w -S $0 ${1+"$@"}' & eval 'exec perl -w -S $0 $argv:q' can anybody explain me what does it says. the only initials i've seen so far are !#/usr/bin/perl, which tells the server where to look for the perl interpreter .
0
7915
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7841
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8204
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7965
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3838
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.