in reply to Re: Copying files between directories. How can I improve this code.
in thread Copying files between directories. How can I improve this code.

Is there anything in BBEdit that would do this. Can I link it to perltidy somehow? I'll find out now.

I believe that my gives each varible a local scope. This stops bugs due to ambiguities.Correct me if I wrong please.

Thanks for all your help BTW.

  • Comment on Re^2: Copying files between directories. How can I improve this code.

Replies are listed 'Best First'.
Re^3: Copying files between directories. How can I improve this code.
by adrianh (Chancellor) on Apr 22, 2006 at 17:26 UTC
    Is there anything in BBEdit that would do this. Can I link it to perltidy somehow? I'll find out now.

    The easiest way would be to set it up as a unix filter. For example I have this:

    #! /usr/bin/perl # ~/Library/Application Support/BBEdit/ # Unix Support/Unix Filters/perltidy.pl use strict; use warnings; use Perl::Tidy; my @destination; Perl::Tidy::perltidy( source => [ <> ], destination => \@destination, ); print @destination;

    bound to ctrl-t on my BBEdit.