Alright, maybe my second ...
while (<>) { push @{$ws_count{+split}}, $_; }
while (($num, $words) = each %ws_count)
{
print "\n----- \#$num -----\n\n";
foreach (@$words) { print; }
}
Though honestly, the first line is the impressive bit, the rest is just nice output formatting
(
Read more... )
if(/\s*(.*):\s*([^=]*);\s*(.*)/)
is much more outrageous. And I could go on with silly examples, but I use (or used) that in code.
I missed the part about all lines with same number of words, but got the res.
Reply
Reply
Reply
Also, since I don't want to respond separately to the other comment, I know it's a mere regexp, but it's much less english-y. I have some really bad lines ($_->[0][0][0] = something for example), but I think posting any of the interesting ones does something like break an NDA and makes me lose my soul. Or something.
Reply
Ah yes, the old "forfeiture of soul" clause. I hear that is pretty much boiler plate nowadays.
Reply
I wonder if I can get a job for them and change all the tooltips to read 'selectrification'....
Reply
Reply
Reply
And yes, the selectrify change would be cool in a subtle prank sort of way. In fact, you could even make it more subtle by only having it show up every so often and then disappear quickly. Often enough to people notice it, but sparingly enough that people start to doubt that they actually saw it and start to think that they were imagining it.
Reply
That would be interesting...you'd have to do some kind of voice recognition to require that the commander yells the 'x for the win!' part over team chat. Or public chat, but voice is usually separate from that (though when it's not, games are interesting).
And instead of being subtle, they should recode things so that the commander's interface is described by an html file. Then, since I will be an intern there or something, I'll steal some of your old LJ posts and use those as template. Oh, and a javascript that moves buttons away from your mouse when you try and click! That would be so awesome.
Reply
Reply
Leave a comment