Perl/Tk and dos files
llornkcor at llornkcor.com
llornkcor at llornkcor.com
Mon Nov 22 12:23:23 CST 1999
Hello-
I am having a little trouble. I am writting a Perl/Tk gui to load a
text file, downloaded from the net, into a TextUndo widget.
The problem is that it shows the DOS line endings when used on
linux. I can remove them from the file, using a script such as
while (<>) {
$_ =~s/\r\n/\n/g;
print $_;
}
as a seperate program.
How can I go about doing this when it is loading into the widget?
Whenever I try, it seems to cause a core dump.
Or could I do the substitute when ftp'ing the file?
Thanks- LP
More information about the Boulder-pm
mailing list