Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invoking Perl from within TCL script

Status
Not open for further replies.

Tommms

Programmer
Feb 1, 2009
3
US
Hello Everyone,

What is the best way to call a perl script from within a tcl script?

For example:

content of code1.tcl:

exec /Users/Mac/desktop/hello.pl

content of hello.pl:

print "hello";

When I invoke hello.pl from within code1.pl, I get an error message saying the command print cannot be found.

Thanks!

Tom

 
I don't do this very often but I think you should call the perl interpreter and pass the perl script (name) as an argument.

_________________
Bob Rashkin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top