[19898] in Athena Bugs

home help back first fref pref prev next nref lref last post

linux 9.0.18: perl

daemon@ATHENA.MIT.EDU (Edward Kogan)
Thu Oct 18 01:02:39 2001

Message-Id: <200110180502.BAA31206@m56-129-29.mit.edu>
To: bugs@MIT.EDU
Date: Thu, 18 Oct 2001 01:02:37 -0400
From: Edward Kogan <ekogan@MIT.EDU>

System name:		m56-129-29.mit.edu
Type and version:	i686 9.0.18
Display type:		XFree86 3.3.6a SVGA

Shell:			/bin/athena/tcsh
Window manager:		fvwm95

What were you trying to do?


What's wrong:
     File operations don't happen correctly using the version of perl 
     on this machine.

What should have happened:
I did
	cd /mit/ekogan/nlp/ps2
	./generate_corpora.pl 1000000 > corp.A
this should have generated a file consisting of a million randomly chosen
lowercase words. However, the file generated contained some uppercase and 
non-printable characters.

I tried to remove the erroneous upper-case characters using the command line:
	 perl -i -pe 'tr/A-Z/a-z/' corp.A
which does lowercase the upper-case characters which were present, but 
introduces other ones in random places in the file.


Please describe any relevant documentation references:
	[Please replace this line with your information.]

home help back first fref pref prev next nref lref last post