Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Text-MiniTmpl CPAN distribution.

Report information
The Basics
Id: 100552
Status: resolved
Priority: 0/
Queue: Text-MiniTmpl

People
Owner: POWERMAN [...] cpan.org
Requestors: MARKF [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.1.2
Fixed in: (no value)



Subject: Incorrect handling of numbers in encode_js
The example given in the documentation is: <script> var int_from_perl = #~ encode_js($number) ~#; var str_from_perl = '#~ encode_js($string) ~#'; </script> However, if $number is negative (say, -100) the output becomes: var int_from_perl = \-100; Which is a syntax error.
Thanks, fixed in 1.1.3.