« | Main | »

November 25, 2009

What source code looks like matters, it really does. I was mailed some Perl last night that didn't look especially Perl-ish, so camelcase2underscores is a little ruby to convert camel-cased code to be underscore-delimited from files, strings, and/or URLs. Give it no args to see help
% camelcase2underscores
Usage camelcase2underscores <options> <inputs>
where options include:
  -h | -help     print this message
  -v | -verbose  verbosely print what we're doing
  -l | -loud     *very* verbosely print what we're doing
  -p | -print    echo the input
  -r | -report   print report at the end
and inputs are files, URLs, or strings.
If I find any other way to make code more Perlish, it'll go in here.

Posted by jeff at November 25, 2009 01:05 PM