I am having some trouble getting certain scripts to work in Activeperl on
Windows, and the essential problem seems to be that Activeperl doesn't quite do
what it's told with line feeds.

For reference, I use cygwin, and often use cygwin perl, but I need some version
of the scripts I have to work under Activeperl.  My problem can be summarised by
the following example:

>perl -e 'print("text\nmoretext\nstill more text\n");' > test.txt
>cat -A test.txt
text^M$
moretext^M$
still more text^M$
>

I seem to have aquired some extra carriage returns.  Thus print("text\r\n")
gives me:

text^M^M$

which is particularly undesireable.  Now I understand that this is a perfectly
good feature in Activeperl for the most part, but - Is there some way to turn it
OFF?  That is, make it print ONLY linefeeds rather than carriage return line
feeds?

Thanks.

Leland.
-- 
"I'm attracted by the fabric of waste"
        -- Tryst, Michael Fisher
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to