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