Adding a Condition

I want to add a Condition for “OnPriorityChange.”

I modified Jesse’s StatusChange.pm to be Prioritychange, but am having
trouble with the insert script.

I tried modifying the script supplied with Jesse’s OnQueueChange. I
think the relevant section is:

{{{ ScripConditions

my @ScripConditions = (
{
Name => ‘OnPriorityChange’,
Description => ‘When a ticket’s Priority
changes’,
ApplicableTransTypes => ‘Set’,
ExecModule => ‘PriorityChange’,
},

                   );

}}}

When I run the script I get:

Substitution replacement not terminated at ./insert_condition.pl.1
line 57.

57 is the “},” right after “ExecModule => ‘PriorityChange’,” in the
above.

What am I doing wrong? Too stupid to use RT? :slight_smile:

Substitution replacement not terminated at ./insert_condition.pl.1
line 57.

                     Description =>  'When a ticket's Priority changes',
                                                     ^
                                                     |

What am I doing wrong? Too stupid to use RT? :slight_smile:

Nah, just a basic perlism that caught me twice today. Single quotes are
sometimes awkward when you close a string inadvertently.

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B             Operations/Security

Substitution replacement not terminated at ./insert_condition.pl.1
line 57.

                     Description =>  'When a ticket's Priority

changes’,

                                                     ^

What am I doing wrong? Too stupid to use RT? :slight_smile:

Nah, just a basic perlism that caught me twice today. Single quotes are
sometimes awkward when you close a string inadvertently.

Semi-Obscure Perl Trick-of-the-Day:

$msg = qq{“This construct’s equivalent to double-quotes,” he said.\n};

$msg .= q{“This construct’s equivalent to single-quotes,” she said.};

You can use different delimiters depending on what you need to quote. These
are brutally handy when you don’t want to fiddle with escaping literal
quotes. See ‘perldoc perlop’ for more info.

– Bob

Substitution replacement not terminated at ./insert_condition.pl.1
line 57.

                     Description =>  'When a ticket's Priority changes',
                                                    ^
                                                    |

What am I doing wrong? Too stupid to use RT? :slight_smile:

Nah, just a basic perlism that caught me twice today. Single quotes are
sometimes awkward when you close a string inadvertently.

One of these days I have to really get into Perl. I know just barely
enough to be dangerous and then I get tripped up because Perl isn’t
quite the same as some other tools. :slight_smile:

Substitution replacement not terminated at ./insert_condition.pl.1
line 57.

                     Description =>  'When a ticket's Priority changes',
                                                    ^
                                                    |

What am I doing wrong? Too stupid to use RT? :slight_smile:

Nah, just a basic perlism that caught me twice today. Single quotes are
sometimes awkward when you close a string inadvertently.

One of these days I have to really get into Perl. I know just barely
enough to be dangerous and then I get tripped up because Perl isn’t
quite the same as some other tools. :slight_smile:

Ummm, I am not aware of any unix tool in which a ’ delimited string
can have ’ in it without some kind of special notification.

-Robin

http://www.digitalkingdom.org/~rlpowell/ BTW, I’m male, honest.
le datni cu djica le nu zifre .iku’i .oi le so’e datni cu to’e te pilno
je xlali – RLP http://www.lojban.org/