[Padre-dev] [Padre-commit] rev 990 - trunk/lib/Padre/Wx
Jerome Quelin
jquelin at gmail.com
Fri Nov 14 08:47:03 PST 2008
On 08/11/14 17:44 +0200, Gabor Szabo wrote:
> On Fri, Nov 14, 2008 at 5:36 PM, <svn at perlide.org> wrote:
> > Author: jquelin
> > See also: http://padre.perlide.org/changeset/990
> > Date: 2008-11-14 07:36:12 -0800 (Fri, 14 Nov 2008)
> > New Revision: 990
> > + # redefine some app::ack subs to display results in padre's output
> > + # note - we're eval-ing this, otherwise it would get interpreted
> > + # before loading app::ack, leading to redefine warnings.
> > + eval q{
> > + no warnings 'redefine';
> > + sub App::Ack::print_first_filename { print_results("$_[0]\n"); }
> > + sub App::Ack::print_separator { print_results("--\n"); }
> > + sub App::Ack::print { print_results($_[0]); }
> > + sub App::Ack::print_filename { print_results("$_[0]$_[1]"); }
> > + sub App::Ack::print_line_no { print_results("$_[0]$_[1]"); }
> > + }
>
> It might be better to change it directly as import() usually does.
your wishes are my command - fixed in r996 :-)
jérôme
--
jquelin at gmail.com
More information about the Padre-dev
mailing list