Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 871001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:34:18+00:00 2026-05-15T10:34:18+00:00

The google API example shows that you should have the javascript within the head

  • 0

The google API example shows that you should have the javascript within the head tag but I am using perl module CGI and in there they suggest that you use “print header;” instead of writting out your headers explicitly.

So if I want to use the perl CGI module and the google API javascript what is the correct way to do this?

I tried writing out the header explicitly but It seemed like the perl module really wanted me to use the header method. It seems like this would be a common use case but I looked around the web for some examples of this and I could not find one. Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:34:18+00:00Added an answer on May 15, 2026 at 10:34 am

    Just ignore the CGI documentation and print your own HTML head section with the <script> section.

    By the way, the header function in CGI prints the HTTP header, not the HTML header. The html header is produced by a function start_html. But you do not need to use CGI’s built-in function. CGI output is supposed to look like the following (without the # parts):

    Content-Type: text/html                   # HTTP HEADER
    
    <html>                                    # HTML HEADER
    <head>
    <script type="text/javascript">           # JavaScript
    ...
    </script>
    </head>
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have create a site embedded Google mapusing api V3 that shows our 4
For example we have this line chart at Google Code API there is a
I am using google maps api v3 and have an array of arrays object:
I have a couple of questions regarding using Google maps API, especially the Places
I plan to include google map using javascript api to show search results for
All the examples I've come across using Google Maps API seem to show a
I've been following the example in the Google Maps API V3 to cluster the
Some people load the google places api with a client parameter, example : <script
Are there any examples of Store Locators using Google API v3 without using a
I've read through the Google Spreadsheets API PHP documentation. All examples are using Zend,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.