Did you check the value of $target first?<br><br>You can use $^X to get the full path of the perl you are running.<br>system("$^X somescript.pl");<br><br>Although if the script is executable, and has a #! line, then you don't need it at all.
<br>system("somescript.pl");<br><br>Are you using cygwin?<br><br>David<br><br><div><span class="gmail_quote">On 5/7/07, <b class="gmail_sendername"><a href="mailto:nheller@silcon.com">nheller@silcon.com</a></b> <
<a href="mailto:nheller@silcon.com">nheller@silcon.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I read PerlDocs and this is what I tried:
<br><br>1. chdir "c:\\sqlscr";<br>2. my $target = readlnk("Multi_SQL.pl");<br>3. system "Perl $target";<br><br>I received a fatal error that line 2 (above) contained a call to an<br>"Undefined Subroutine". I couldn't tell from Perl Docs what I should have
<br>included (require...?).<br><br>Can you give me some insight.<br><br>Neil Heller<br><br><br><br><br><br>> readlink() ? Then execute the target?<br>><br>> perldoc -f readlink<br>><br>> don't know if works in waanderz.
<br>><br>> On 5/7/07, <a href="mailto:nheller@silcon.com">nheller@silcon.com</a> <<a href="mailto:nheller@silcon.com">nheller@silcon.com</a>> wrote:<br>>> I'm trying to write a Perl script in Winderz. At one point in my
<br>>> script,<br>>> I want to launch another Perl script.<br>>><br>>> system "Perl secondScript.pl";<br>>><br>>> The problem I'm having is that secondScript.pl is a link to the real
<br>>> secondScript.pl (which is at a location with a very long URN) and Perl<br>>> balks at executing the link.<br>>><br>>> Does anybody have an idea about how I can get around this?<br>><br>> --
<br>> Live in a world of your own, but always welcome visitors.<br>> _______________________________________________<br>> SanFrancisco-pm mailing list<br>> <a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org
</a><br>> <a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>><br><br>_______________________________________________<br>SanFrancisco-pm mailing list
<br><a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br></blockquote></div><br>