News for hackers. Stuff that matters.
Re:Dimsum is like head or tail, but pulls randomly from the ... by andrewcooke on Monday November 26, 2012 @05:22PM (#4834359)
it was an example in the original camel book.

[edit: i was going to delete this, but since you replied i'll leave it - it does appear (too?) in the camel book, on p 246 of my copy, but like you say, it's for a single line. hadn't opened that book in years, took me some time to find it...]

Re:Dimsum is like head or tail, but pulls randomly from the ... by neilk on Monday November 26, 2012 @05:27PM (#4834378)
I believe it was an example in the Perl Cookbook, but for picking a single line only. (Ancient UseNet thread: http://bit.ly/Thd4eE)