Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the ack CPAN distribution.

Maintainer(s)' notes

ack's issues are tracked at https://github.com/petdance/ack2

Report information
The Basics
Id: 20691
Status: resolved
Priority: 0/
Queue: ack

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.24
Fixed in: (no value)



Subject: Wrong usage of "eval use"
The lines BEGIN { eval { use Term::ANSIColor } unless $is_windows; } have to be rewritten to use string-eval: BEGIN { eval q{ use Term::ANSIColor } unless $is_windows; } Otherwise the use is always executed. Regards, Slaven
From: MARKSTOS [...] cpan.org
On Wed Jul 26 04:51:32 2006, SREZIC wrote: Show quoted text
> The lines > > BEGIN { > eval { use Term::ANSIColor } unless $is_windows; > } > > have to be rewritten to use string-eval: > > > BEGIN { > eval q{ use Term::ANSIColor } unless $is_windows; > } > > Otherwise the use is always executed.
I confirmed this bug, and the fix. The error returned is: Use of uninitialized value in eval "string" at /usr/local/bin/ack line 15.
This was fixed back in 1.28.