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(&quot;$^X somescript.pl&quot;);<br><br>Although if the script is executable, and has a #! line, then you don&#39;t need it at all.
<br>system(&quot;somescript.pl&quot;);<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> &lt;
<a href="mailto:nheller@silcon.com">nheller@silcon.com</a>&gt; 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.&nbsp;&nbsp;chdir &quot;c:\\sqlscr&quot;;<br>2.&nbsp;&nbsp;my $target = readlnk(&quot;Multi_SQL.pl&quot;);<br>3.&nbsp;&nbsp;system &quot;Perl $target&quot;;<br><br>I received a fatal error that line 2 (above) contained a call to an<br>&quot;Undefined Subroutine&quot;.&nbsp;&nbsp;I couldn&#39;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>&gt; readlink() ?&nbsp;&nbsp;Then execute the target?<br>&gt;<br>&gt; perldoc -f readlink<br>&gt;<br>&gt; don&#39;t know if works in waanderz.
<br>&gt;<br>&gt; On 5/7/07, <a href="mailto:nheller@silcon.com">nheller@silcon.com</a> &lt;<a href="mailto:nheller@silcon.com">nheller@silcon.com</a>&gt; wrote:<br>&gt;&gt; I&#39;m trying to write a Perl script in Winderz.&nbsp;&nbsp;At one point in my
<br>&gt;&gt; script,<br>&gt;&gt; I want to launch another Perl script.<br>&gt;&gt;<br>&gt;&gt; system &quot;Perl secondScript.pl&quot;;<br>&gt;&gt;<br>&gt;&gt; The problem I&#39;m having is that secondScript.pl is a link to the real
<br>&gt;&gt; secondScript.pl (which is at a location with a very long URN) and Perl<br>&gt;&gt; balks at executing the link.<br>&gt;&gt;<br>&gt;&gt; Does anybody have an idea about how I can get around this?<br>&gt;<br>&gt; --
<br>&gt; Live in a world of your own, but always welcome visitors.<br>&gt; _______________________________________________<br>&gt; SanFrancisco-pm mailing list<br>&gt; <a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org
</a><br>&gt; <a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>&gt;<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>