in reply to Re^5: Have trouble implementing a shell-alike script
in thread Have trouble implementing a shell-alike script

I think that it is beyond discussion that Perl prints LF for \n on a Unix system and Perl prints CRLF for \n on a Windows system.

No. That depends entirely upon layers/discipline and not on platforms.

Yes, some platforms have defaults, but they're not absolute.

  • Comment on Re^6: Have trouble implementing a shell-alike script