in reply to How to get run jquery in cgi program?
Am trying to use jquery with cgi program but perl compiler is not recogonizing the $ symbol of jquery.
Why would perl know how to interpret a javascript program?
If you wish to include/inline a html document in your perl program, you have to quote it, use heredocs (single quotes are non-interpolating)
#!/usr/bin/perl -- use strict; use warnings; use CGI; Main( @ARGV ); exit( 0 ); sub Main { my $html = <<'__THIS_IS_MY_HTML__'; ... __THIS_IS_MY_HTML__ my $q = CGI->new; print $q->header, $html; }
See perlintro, Tutorials > CGI Programming
|
|---|