<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>I checked them with vi's list command, there is no cartridge return character in the scripts.<br></span></div><div><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Andrew Rodland <andrew@cleverdomain.org><br><b><span style="font-weight: bold;">To:</span></b> Chicago.pm chatter <chicago-talk@pm.org><br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, June 16, 2011 9:19 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Chicago-talk] Perl script cannot find itself?<br></font><br>
On Thursday, June 16, 2011 04:47:39 PM tiger peng wrote:<br>> There are two Perl scripts only different by the first line. Why the one<br>> without -w in the #! line cannot find itself but the own with -w can?<br><br>Because you saved the file with windows line-endings, and there's a \cM at the <br>end of every line. In the first case, the kernel is looking for <br>"/usr/local/bin/perl\cM" and can't find it. In the second case the kernel is <br>looking for "/usr/local/bin/perl" and running it with an argument of "-w\cM", <br>which is harmless.<br>_______________________________________________<br>Chicago-talk mailing list<br><a ymailto="mailto:Chicago-talk@pm.org" href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br>http://mail.pm.org/mailman/listinfo/chicago-talk<br><br><br></div></div></div></body></html>