Hi , I will explain more with code example in my perl dancer code I have route ... $jsonFile ...
Sorry, that doesn't compile , its not perl
$ perl nope
Bareword found where operator expected at nope line 5, near ""{"name"
(Missing operator before name?)
String found where operator expected at nope line 5, near "name":""
Bareword found where operator expected at nope line 5, near "":"jsonFi
+leexample"
(Missing operator before jsonFileexample?)
String found where operator expected at nope line 5, near "jsonFileexa
+mple",""
Bareword found where operator expected at nope line 5, near "","proble
+m"
(Missing operator before problem?)
String found where operator expected at nope line 5, near "problem":""
Bareword found where operator expected at nope line 5, near "":"thisIs
+ThrProblem"
(Missing operator before thisIsThrProblem?)
Backslash found where operator expected at nope line 5, near "thisIsTh
+rProblem\"
String found where operator expected at nope line 5, at end of line
(Missing semicolon on previous line?)
syntax error at nope line 5, near ""{"name"
Can't find string terminator '"' anywhere before EOF at nope line 5.
in the server side I have the route that receive the perl dancer paramemters
That doesn't mention sendfileToserver
so here in javascript I had the error , that some thing is wrong with the json file when I look at the error I saw that json file is missing the \
So far you're not showing a problem with Dancer
Most likely a problem in your template
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.