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

  • Home
  • SEARCH
  • 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 872059
In Process

The Archive Base Latest Questions

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

When I run perl -cw to check syntax for my perl modules and warnings

  • 0

When I run “perl -cw” to check syntax for my perl modules and warnings or errors are encountered, two line numbers are given:

perl -cw lib/My/Module.pm
Global symbol "%badvar" requires explicit package name at lib/My/Module.pm line 93, <DATA> line 132.
lib/My/Module.pm had compilation errors.

The “line 93” is the correct position in the source file, but what does “<DATA> line 132” refer to?

  • 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:43:45+00:00Added an answer on May 15, 2026 at 10:43 am

    The structure of an error message is:

    message at file line x, <handle> line y.

    • message is a description of the error.
    • file is the file where the error occurred.
    • x is the line number in the file where the error occurred.
    • handle is the last file handle read from.
    • y is the last line1 read from the handle.

    In your case, the error occurred at line 93 of lib/My/Module.pm, after the 132nd read of the DATA handle. DATA is the built-in handle for reading text after the __DATA__ tag of a source file. Note that line numbers for the DATA handle are skewed. “<DATA> line 132” is the 132nd line after the __DATA__ tag, not the 132nd line of the file.

    1] Technically, it’s the value of $.. This is normally a line number but could be something else if you’ve changed the value of $/. It’s also skewed for the DATA handle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to check whitch of perl command line switches have been
Is it possible to check a bash script syntax without executing it? Using Perl,
I'm writing this Perl script that gets two command line arguments: a directory and
It is hard for me to choose between two perl modules - Params::Validate and
In one of our modules, we check if a given binary ( varnishd )
When I run perl , I get the warning: perl: warning: Setting locale failed.
maybe this is a stupid question but : i run perl 5.8.8 and i
I have run this Perl code: #!/usr/bin/perl print content-type: text/html \n\n; print Hello World.\n;
In Perl, to run another Perl script from my script, or to run any
How can I run my perl CGI script without apache? This is for testing

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.