Im trying to call another perl file from within a perl program.

I have been told it's

system("file.pl");

but this doesnt seem to work

Recommended Answers

All 2 Replies

What do you expect file.pl to do when called that it doesn't seem to do? Do you want control to return to your calling script after the file.pl finishes or just to terminate, or to call another script? Since what someone told you about system didn't work, have you had a look at perldoc -f system?

What do you expect file.pl to do when called that it doesn't seem to do? Do you want control to return to your calling script after the file.pl finishes or just to terminate, or to call another script? Since what someone told you about system didn't work, have you had a look at perldoc -f system?

Hi, thanks for your input. I discovered that the file i wanted to call had a typo which is why is wasnt working.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.