in reply to Reading a file from any arbitrary place in the file.

If your description is the entire problem, I would suggest using sed instead of Perl because it has syntax for dealing with exactly this kind of operation.
sed -n "/This is the temp line/,$"p infile > outfile
I'm not hating on Perl by any means, I just use the simplest tool for the job. Of course if you have to do anything more than a regex or two with the text before generating the output, stick with Perl.

Replies are listed 'Best First'.
Re^2: Reading a file from any arbitrary place in the file.
by Anonymous Monk on Nov 22, 2005 at 00:52 UTC
    Or, if you do not want to include the temp line:
    sed -n "1,/This is the temp line/"!p infile > outfile