[rt-users] Setting Ticket Owner name

Kalle Hallivuori kato at iki.fi
Tue Oct 28 15:42:10 EDT 2008


Hi!

2008/10/27 Kenneth Crocker <KFCrocker at lbl.gov>:
>        I thought that "return unless" defaulted to "return 1 unless", but I
> changed it anyway.

If you don't define a value, it is undefined. There is a special value
named 'undef' in Perl just for that. It evaluates to zero on numeric
comparison, and false on boolean.

>        I tried your "set" code and that didn't work. Any other ideas?

> if  ($org = 'XXX')

You probably want to compare two strings with "$org eq 'XXX'" rather
than set $org's value to 'XXX', which is what "=" does.

Cheers,

-- 
Kalle Hallivuori +358-41-5053073 http://korpiq.iki.fi/



More information about the rt-users mailing list