[rt-devel] rt-2-1-78: mess with the site config

Autrijus Tang autrijus at autrijus.org
Mon Mar 3 22:25:34 EST 2003


On Mon, Mar 03, 2003 at 10:21:08PM -0500, Jesse Vincent wrote:
> > But RT_Config.pm test for truth not definedness -- I just found
> > out about it the hard way yesterday.  That is, when I set some
> > value to '' explicitly, _Config.pm comes in and overrides it.
> 
> Point. Pity we don't have an //= operator in perl5.

local *Set = sub { $_[0] = $_[1] unless defined $_[0] };

Thanks,
/Autrijus/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://pallas.eruditorum.org/pipermail/rt-devel/attachments/20030304/70987c08/attachment.pgp


More information about the Rt-devel mailing list