agora
October 2nd, 2005, 10:28 AM
I have just installed Ubuntu Hoary Hedgehog on computer that I use for doing some programming, mostly in Perl. After the system change the scripts started to return errors (they used to worked correctly under Slackware 9.1 - the previous system on this computer). The problem is with executing other programs or Perl scripts from within the mother script by writing something like this:
system (“Perl_Script.pl”); or `Perl_Script.pl`;
Perl_Script.pl is an executable file, with the standard header #!/usr/bin/perl -w.
Adding directory before the script name (system (“$current_dir/Perl_Script.pl”); ) solves the problem, but I am wondering if there is another way to do it, since I am not eager to look into hundreds of Perl scripts and modules I wrote so far;) . Do you have suggestions, please.
system (“Perl_Script.pl”); or `Perl_Script.pl`;
Perl_Script.pl is an executable file, with the standard header #!/usr/bin/perl -w.
Adding directory before the script name (system (“$current_dir/Perl_Script.pl”); ) solves the problem, but I am wondering if there is another way to do it, since I am not eager to look into hundreds of Perl scripts and modules I wrote so far;) . Do you have suggestions, please.