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.
If you hard-code newlines in strings, here-docs, regexps, etc., you'd
get a different literal, not necessarily get an error. Take into
account anyway that the portable way to write a nelinwe in a string
or regexp literal is \n.
Any major version control system like Subversion handles newline
conventions transparently for you. If you commit a source file edited
in Windows 2000, and check it out in FreeBSD, each local copy will
have the native conventions. That's why those systems distinguish
between binary and text files. Yet another benefit of using a VCS.
-- fxn
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>