Now how can I include this following javascript code in that script. I need to know the syntax Thanks in advance.

Template, here docs, or double quoted string, see Re: Quote and Quote-like Operators / Quote and Quote-like Operators

perl -MData::Dump -MFile::Slurp -e " dd scalar read_file shift, { qw/ binmode :raw / }; " input.txt > input_txt_as_perl.pl

Also, see How do I compose an effective node title? as "CGI PERL Help required" is four stop words , things we know simply because you asked a perlquestion (perl help required) or are tangential to the problem (cgi)

You had already written Now how can I include this following javascript code in that script. I need to know the syntax Thanks in advance. and that is a pretty effective title: Syntax to include javascript

Syntax to include javascript -> Howto Include JavaScript to CGI.pm Script

The question discusses using interpolating heredocs (double quotes)


In reply to Re: CGI PERL Help required by Anonymous Monk
in thread CGI PERL Help required by ghosh123

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.