BEGIN { $^I = ".old"; } LINE: while ( defined( $_ = ) ) { print $_ unless $. == 1 or eof; }