At 13:51 +0000 25/11/02, Nicholas Clark wrote:
On Mon, Nov 25, 2002 at 02:33:45PM +0100, Rafael Garcia-Suarez wrote:
Chris Nandor <[EMAIL PROTECTED]> wrote:
>
> That shouldn't work. By the time you get to it in the script, if you have a
> #! line, then the entire script is one long comment, and the use() line
> won't ever be executed.

That would be an argument for allowing -M/-m on the #! line.
Er, except that the #! line would all have been read by then, and treated
as a comment. Or have I got things confused?
But is there any reason the # comments are not terminated by the first occurrence of *either* \012 or \015?

I can't see how this would affect any perl script, since presumably not unix script has a cr hidden in a comment (and similarly for Mac script and lf), and even for DOS, the cr will terminate the comment and the lf will be an irrelevant white space (comments can't be inside anything that is storing white space, right?)

This would solve the #! commenting out the entire file issue, and allow the -M flag on the #! line to work.

Enjoy,
Peter.

--
<http://www.interarchy.com/> <http://download.interarchy.com/>


Reply via email to