Thursday, April 7, 2011

How Script to read a file using while loop?

#!/usr/local/ActivePerl-5.8/bin/perl
if (open(MYFILE, "file1")) {
$line = ;
while ($line ne "") {
print ($line);
$line = ;
}
}

No comments:

Post a Comment