in reply to Re^2: How to print bunch of data in a file without breaking in to new line
in thread How to print bunch of data in a file without breaking in to new line
#!/usr/bin/perl use warnings; use strict; open (FH,"< zz.html") or die "$!\n"; read( FH, $buf, -s FH ); close FH; #print "$buf\n"; $buf =~ s/\n//g; # strips out all newlines open (OH,"> zz_out.html") or die "$!\n"; print OH $buf; close OH; # zz_out.html will not have any newlines when viewed with a text edito +r, but will still be viewable in a web browser
|
|---|