develooper Front page | perl.beginners | Postings from April 2002

Support Perl Orthodoxy : Re: GoryDetails on: error log message

Thread Previous | Thread Next
April 26, 2002 08:02
Support Perl Orthodoxy : Re: GoryDetails on: error log message
Message ID:

On Friday, April 26, 2002, at 07:55 , Mat Harrison wrote:

> you are a saint.

do I look like roger moore? { or do kids only know the val kilmer variant?

the critical part to remember happyKampfr's is that had he
followed the canonical orthodoxy of

	#!/usr/bin/perl -w
	use strict;

then perl would have done for him what was the right thing,
even if the underlying OS's were not willing to emotionally
deal with their 'end of line' tokenization issues......

So we do not advocate the Orthodoxy for merely the chance to
listen to ourselves....

>> now of course had you put that line as
>> 	#!/usr/bin/perl -w
>> then the 'shebang' would have worked because
>> the formating would have been
>> 	od -c dumbDos.cgi
>> 0000000   #   !   /   u   s   r   /   b   i   n   /   p   e   r   l
>> 0000020   -   w  \r  \n  \r  \n
>> that would have moved the "^M" like gunge off of
>> 	#!/usr/bin/perl
>> and perl has no problem with sucking in
>> 	-w\r\n
>> as a command line argument
>> since in the dark it will 'chomp' that stuff anyway .....
>> have we mentioned 'use -w' before????
>> Did we ever mention 'use strict;' before!!!
>> There are Majikal and Mystical Reasons.....



ps: and Remember to change your socks and clean up your room!

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About