in reply to Input from Standard Input

Using this particular syntax, the input is not accessible. You can assign it to an array if you want to do something with it:
my @input = <STDIN>; print 'Size: ', scalar(@input), " lines.\n";
Update: The last 50 lines are then accessible in
@input[-50 .. -1]