Keep It Simple, Stupid | |
PerlMonks |
CR+LFby Gorio3721 (Acolyte) |
on Jun 19, 2003 at 00:13 UTC ( [id://267033]=perlquestion: print w/replies, xml ) | Need Help?? |
Gorio3721 has asked for the wisdom of the Perl Monks concerning the following question: This should be an easy one but I am stumped. I have a script that generates an init file for the fvwm window manager (running under cygwin). The script worked just fine using the cygwin build of perl (5.8.0.3 I think). I switched over to ActiveState perl and the script seems to run just fine (The output looks the same) but it creates an output file with both CR+LF terminating each line instead of just the the LF line terminator that the cygwin build produced. I think that fvwm barfs when it sees CR+LF in it's config file. How do I coax perl to just print only the LF on stdout? NOTE: I'm only printing to standard out and not explicitly opening the output file (for now) but I'm willing to change that. Thanks! Gorio
Back to
Seekers of Perl Wisdom
|
|