perl -lni.bak -e '/^__END__$/ && last; print;' filename.pl [download]
Dave
In reply to Re: /s option modifier in regex substitution by davido in thread /s option modifier in regex substitution by reisinge