[rt-users] Couldn't compile CustomCommitCode codeblock ... panic: sv_setpvn called with negative strlen -2 at /usr/share/perl5/Devel/StackTrace.pm line 53.
Alex Vandiver
alexmv at bestpractical.com
Wed Aug 6 16:16:03 EDT 2014
On 08/06/2014 02:39 PM, Michael Mol wrote:
> Code snippet is now:
>
> ### Begin snippet
> # Find the message from transactionobj->content
> # Set the subject to the message by using ticketobj->SetSubject
>
> my $body = $self->TransactionObj->Content;
> my @lines = split(m/\n/, $body);
> my $trapID = $lines[0];
> my $message = $lines[2];
>
> $self->TicketObj->SetSubject("$trapID -- $message);
> ### End snippet
You're missing a closing double-quote on the last line. If that's the
problem, it's quite impressive that managed set panic perl -- can you
show the output of `perl -V` ?
- Alex
More information about the rt-users
mailing list