[ale] For you PERL Gurus

Zhongbin Yu " <zyu at premtec.com> Zhongbin Yu " <zyu at premtec.com>
Mon Jun 28 10:46:04 EDT 1999


my $fileName = "/home/ryan/doc/blankedFile";
open FILE, "< $fileName" or die "Can't open $fileName for reading!. Err is
$!\n";
while(<FILE>) {
        s/\n\n/ /g;
        print
}
close(FILE);
exit(0);

If you are doing it on Windows, you may need to pay attention to your path
/ or \.

Welcome to PERL! (man perldata, man perlop, man perlfaq4 )


Jerry Yu
----------------------------------------------------------------------------
Systems Engineer	| zyu at tc.net
Premiere Technologies	| 404-262-8544(O)	1-800-979-1105 (P)
Atlanta, GA 30326	| ae.tc.net/dept/engineering/op/public/developer/zyu






More information about the Ale mailing list