You're viewing a comment by Alastair McGowan-Douglas and its responses.

yo dawg, you can do

push @a, $_; shift @a if @a > 10;

to keep track of the last 10 lines

You also should join your output!

END { print join "\n", @a }

Comment Responses

April 27, 2011, 17:14

Thanks sir for the invaluable comments!

May 05, 2011, 04:20

small cats!

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "floppy_256": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.