[Fwd: Re: [scmbug-users] Scmbug error 79: Package 'Bugzilla' notfoundin inst

Max Kanat-Alexander mkanat at bugzilla.org
Fri Feb 15 23:08:13 UTC 2008


On Fri, 15 Feb 2008 10:39:15 -0700 Kristis Makris
<kristis.makris at asu.edu> wrote:
> > Fix: change
> > if ( !eval ( $cmd ) ) {
> > to
> > if ( !eval { $cmd } ) {

	Hrm. Um, actually, that works because $cmd is a string and a
string is always true. It's not actually executing the command.

	An "eval {}" block is just a way of catching exceptions, where
a "die" doesn't really cause the system to die.

	"eval()" on the other hand, actually executes the code
contained in the string.

	He could also try changing his "die $@" in my original code, if
it was dying with just "Died" to "die($@ || $!)".

	-Max
-- 
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.



More information about the developers mailing list