is <a href="http://test.pl">test.pl</a> executable?<br><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif"><br></font></div><div><font class="Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">-imran<br>
</font><br><div class="gmail_quote">On Thu, Jun 16, 2011 at 3:47 PM, tiger peng <span dir="ltr"><<a href="mailto:tigerpeng2001@yahoo.com">tigerpeng2001@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div><br></div><div style="font-family:arial,helvetica,sans-serif">There are two Perl scripts only different by the first line. Why the one without -w in the #! line cannot find itself but the own with -w can?<br>
</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">OS: Linux 2.4.5 #6 SMP</div><div style="font-family:arial,helvetica,sans-serif">Perl:  v5.8.0<br></div>
<div><br></div><div><br></div><div>/tmp>$ sdiff <a href="http://test.pl" target="_blank">test.pl</a> <a href="http://test1.pl" target="_blank">test1.pl</a><br>#!/usr/local/bin/perl                                         | #!/usr/local/bin/perl -w<br>
system ('which
 perl');                                          system ('which perl');<br>print "hi\n";                                                   print "hi\n";<br></div><div><br></div><div>/tmp>$ <a href="http://test.pl" target="_blank">test.pl</a><br>
ksh: <a href="http://test.pl" target="_blank">test.pl</a>: No such file or directory<br>:/tmp>$ ./<a href="http://test.pl" target="_blank">test.pl</a><br>ksh: ./<a href="http://test.pl" target="_blank">test.pl</a>: No such file or directory<br>
/tmp>$ /tmp/<a href="http://test.pl" target="_blank">test.pl</a><br>ksh: /tmp/<a href="http://test.pl" target="_blank">test.pl</a>: No such file or directory<br>/tmp>$ perl <a href="http://test.pl" target="_blank">test.pl</a><br>
/usr/local/bin/perl<br>hi</div><div><br></div><div>/tmp>$ 
 <a href="http://test1.pl" target="_blank">test1.pl</a><br>/usr/local/bin/perl<br>hi<br><br></div><div><br></div><div><br></div></div></div><br>_______________________________________________<br>
Chicago-talk mailing list<br>
<a href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/listinfo/chicago-talk</a><br></blockquote></div><br></div>