[rt-users] Callback with no TicketObject arg, guidance needed

Alex Vandiver alexmv at bestpractical.com
Thu Mar 20 17:40:06 EDT 2014


On Thu, 2014-03-20 at 17:28 -0400, Jeff Blaine wrote:
> if (! $showchildren) {
>     # In theory, this should exclude all fields in @childfields
>     $CustomFields->Limit(FIELD => 'Name', OPERATOR => '!=', VALUE =>
> '$_', ENTRYAGGREGATOR => 'AND', CASESENSITIVE => 0) for (@childfields);
> }

Perl only interpolates variables in double quotes, not single quotes.
You want « VALUE => "$_" »
               or « VALUE => $_ »
              not « VALUE => '$_' »

 - Alex




More information about the rt-users mailing list