Execute another perl script from my perl script

  • Thread starter Petterson Mikael
  • Start date
P

Petterson Mikael

Hi,

I have a perl script where I want to call another perl script.
The perl script I want to call is ( including files):

${arc_bin}/addproj -p $project -r $release -i $isit -V $view

I have tried eval() that I used in my shell script but it did not work.

Any hints?

//Mikael
 
S

Shawn Corey

Petterson said:
Hi,

I have a perl script where I want to call another perl script.
The perl script I want to call is ( including files):

${arc_bin}/addproj -p $project -r $release -i $isit -V $view

I have tried eval() that I used in my shell script but it did not work.

Any hints?

//Mikael

perldoc -f system
perldoc -f exec
perldoc perlop (See `)

--- Shawn
 
P

Paul Lalli

Petterson Mikael said:
I have a perl script where I want to call another perl script.
The perl script I want to call is ( including files):

${arc_bin}/addproj -p $project -r $release -i $isit -V $view

I have tried eval() that I used in my shell script but it did not
work.

"did not work" is a poor error description. Please read the posting
guidelines that are posted to this group regularly.
Any hints?

There are a number of ways of executing external commands. Among them
are:
system (read: perldoc -f system)
exec (read: perldoc -f exec)
backticks (read: perldoc perlop, search for 'qx')
pipes (read: perldoc -f open)

Which one you want to use depends on what kind of information you want
to retrieve from the command, and how you want to interact with the
command.

Paul Lalli
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
ClayE7480

Latest Threads

Top