learnedax ([personal profile] learnedax) wrote2006-09-20 05:21 pm

(no subject)

I'm not the only one who's written perl* just to construct an LJ comment, right?

... right?

*or some similar lightweight script

[identity profile] learnedax.livejournal.com 2006-09-25 07:15 pm (UTC)(link)
ObRetort: in superlightweight scripting, as in so many areas, Ruby remains the bastard stepchild of perl. But at least you can be glad that oneliners like
cat <file> | ruby -ne 'printf("%-6s%s", $., $_)'
(which as you can plainly see adds line numbers to a file) demonstrate the inherent cleanliness that Ruby lords over perl.