[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] For you PERL Gurus
- Subject: [ale] For you PERL Gurus
- From: Zhongbin Yu " <zyu at premtec.com> (Zhongbin Yu " <zyu at premtec.com>)
- Date: Mon, 28 Jun 1999 10:46:04 -0400 (EDT)
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