#!/usr/bin/perl use warnings; use strict; open my $FH, '<', shift or die $!; my $pos; while (<$FH>) { $pos = tell $FH if -1 != index $_, 'Significant Accounting Policies'; } if (defined $pos) { seek $FH, $pos, 0; print while <$FH>; }