perl - sometimes it *does* resemble line noise... (long)

2006-05-12 Thread Paul Lussier
I thought some on this list might be (interested|amused|horrified) at some code I wrote recently. Be forewarned, the code in this e-mail is not meant for those with low tolerances for ugly hacks :) I wrote this function yesterday, the purpose of which is to ssh to a remote machine and determine

Re: perl - sometimes it *does* resemble line noise... (long)

2006-05-12 Thread Kevin D. Clark
Paul Lussier writes: And there you have it. 'return map {...} map {...} grep {...} split(...);' Short, concise, no need for a bunch of temp variables that only get used once and thrown away. I like it. Others, well, not so much :) If this is production code (not write-once code) in my

Re: perl - sometimes it *does* resemble line noise... (long)

2006-05-12 Thread Paul Lussier
[EMAIL PROTECTED] (Kevin D. Clark) writes: Paul Lussier writes: And there you have it. 'return map {...} map {...} grep {...} split(...);' Short, concise, no need for a bunch of temp variables that only get used once and thrown away. I like it. Others, well, not so much :) If this is