Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
For 2023 - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Calling a perl script from another perl script

Posted by pragatid (pragatid), 9 July 2007
I am new to Perl programming. Let me explain my requirement over here. I have a Perl script located in /usr/sbin/ say script A and I want to invoke this script via web  after accepting some user inputs.
What I am thinking is , I will write a perl script(script B) which will invoke my script A and I will post my HTML form to script B. I will be using tomcat as a web server.
Please guide me if this is going to work or let me know if there are any suggestions...
I am just doubtful that would script B be able to invoke scrip A which is located in /usr/sbin/ ?


Posted by admin (Graham Ellis), 10 July 2007
You can invoke one perl script from within another in exactly the same way that you can invoke any other application (or any operating system command, come to that!).  This may leave the two scripts rather loosley coupled, though, so you may prefer to look at require and include statements.

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2023: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: • WEB: • SKYPE: wellho