On Aug 16, 2006, at 2:54 PM, Xavier Noria wrote:
On Aug 16, 2006, at 2:33 PM, Krishnakumar K P wrote:
Hi,
There is a problem in coding perl in windows and using it in linux.
When you code in windows the file will contain dos/windows new
line pairs
instead of the Linux/UNIX single New Line character which may
cause error in
linux server.
That is unlikely, Perl does not care about the newline convention
used in the source code, newlines of any kind are simply discarded.
Sorry that's not exact.
Let me add that newlines are the end-of-comment marker. You could get
parsing errors if the file uses CRs and is being interpreted in a
Unix machine for instance. If the source code uses either LF or CRLF
there will be no problem as long as you are not running old Mac
computers.
Another gotcha has to do with shebangs ending in CRLF, I know no
shell that understands them (that's not a Perl issue though).
-- fxn
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>