[sf-perl] My perl idiom/"I like" of the moment

Bob goolsby bob.goolsby at gmail.com
Wed May 12 16:58:44 PDT 2010


News For You -- I don't like looking at it in daylight, much less in a
dark alley.  Yet another UI designed by someone who never had to use
it, no doubt.


B

On Wed, May 12, 2010 at 4:32 PM, Paul Makepeace
<Paul.Makepeace at realprogrammers.com> wrote:
> Check out this awesome Windows rename app,
>
> http://www.bulkrenameutility.co.uk/Screenshots.php
>
> Now there's a UI you wouldn't want to run into on a dark night!
>
> On Wed, May 12, 2010 at 11:11, Joe Brenner <doom at kzsu.stanford.edu> wrote:
>>
>> I've got a script I call "deep_rename" that takes a list of "s///g"
>> commands, and crunches through them applying them to everything in
>> a tree, including the file names.
>>
>> I've thought it would be funny to give a lighting talk about it some
>> time, where the joke would be that it's too frightening to want to use
>> it very often.
>>
>> In practice, something like your approach where you can monitor
>> what it's doing is usually more practical.
>>
>> Doing it inside your editor would seem to make sense, but there's
>> usually problems with that...  For example, there's the emacs
>> query-replace (M-%), and query-replace-regexp (C-M-%), but then you
>> don't get to use perl regexps, and if you've got more than a few
>> transformations to do on each file, they'd be too awkward.
>> (The "query" commands don't work well in keystroke macros, either.)
>>
>> _______________________________________________
>> SanFrancisco-pm mailing list
>> SanFrancisco-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>>
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>



-- 

Bob Goolsby
bob.goolsby at gmail.com


More information about the SanFrancisco-pm mailing list