in reply to Re^8: Onkeyup not working
in thread Onkeyup not working
(Re?)read the documentation liked by hippo above:
print <<'HTML';
should be:
print <<"HTML";
for example:
my $derp = "jone"; print <<'HTML'; <h3>$derp</h3> HTML
Returns:
<h3>jone</h3>
Thought it'll probably throw errors due to jQuery's use of $ in the JavaScript. To make life easier on yourself, take the advice from elsewhere in the thread, use a templating system to separate your perl code from everything else. Tutorials -> Framework, Templating, and Content Management Systems. If you're not exiting some existing code (or even if you are and it's going to grow significantly) consider making life easier (and fun) using Mojolicious::Lite.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Onkeyup not working
by frank1 (Monk) on Oct 08, 2023 at 15:15 UTC | |
by frank1 (Monk) on Oct 08, 2023 at 15:25 UTC | |
by marto (Cardinal) on Oct 08, 2023 at 16:28 UTC | |
by Anonymous Monk on Oct 08, 2023 at 20:32 UTC |