This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Perl binmode problem on text mount


Yitzchak Scott-Thoennes wrote:
> So check the length.

Good idea:

	binmode STDOUT;
	print "Hello\n";

perl foo.pl > foo.txt ; od -c foo.txt ; ls -l foo.txt

	0000000  H e l l o \r \n	# Perl 5.8.5-3 Cygwin 1.5.11
	-rw-r--r--  1 earl  mkpasswd   7 Nov 4 11:10 foo.txt

	0000000  H e l l o \n		# Perl 5.6.1-2 Cygwin 1.3.10
	-rw-r--r--  1 earl  mkpasswd   6 Nov 4 11:14 foo.txt

	0000000  H e l l o \n		# Perl 5.6.1-2 Cygwin 1.5.11
	-rw-r--r--  1 earl  mkpasswd   6 Nov 4 11:14 foo.txt

Earl


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]