http://www.perlmonks.org?node_id=1033403


in reply to running /bin/sh perl file.pl

command="/some/path/to/perl"

This should be command="commandname" or command="command_name_var"

That way your program defines what perl program to use

Or, since its some xml file, use XML::Twig (or whatever ) to change which perl gets called

Or something else entirely , like runtherightperlforgetaboutshellcauseyouhaveperl.pl ...

But I don't understand your context

  • Comment on Re: running /bin/sh perl file.pl (not, run perl)