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 6828127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:20:48+00:00 2026-05-26T22:20:48+00:00

I am making a very, very simple module (it is the first I’ve ever

  • 0

I am making a very, very simple module (it is the first I’ve ever wrote):

package Master::Math;
use 5.12.4;
use strict;
use warnings;

require Exporter;

our @ISA = qw(Exporter)

our %EXPORT_TAGS = ( 
    'all' => [ qw(
        max



=cut

1; # End of Master::Math

When I run use this in my program, I get the error

Invalid version format (non-numeric data) at C:/Perl/lib/Master/Math.pm line 3,
near "package Master::Math

"
syntax error at C:/Perl/lib/Master/Math.pm line 3, near "package Master::Math

require Exporter"
Compilation failed in require at C:\MainDev\myperl\max.pl line 3.
BEGIN failed–compilation aborted at C:\MainDev\myperl\max.pl line 3.

What do I need to fix this? Thanks!

  • 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-26T22:20:48+00:00Added an answer on May 26, 2026 at 10:20 pm

    You’re missing a semicolon on the declaration of @ISA.

    In sub max, $foo is undeclared; use foreach my $foo ....

    That should get it to compile. I haven’t looked beyond that.

    (BTW, I didn’t get the same errors you did. I used perl 5.14.0, perl -cw master-math.pm.)

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

Sidebar

Related Questions

I'm making my first attempt at experimenting with Comet. I developed a very simple
I am making a very simple preview window in JQuery using just an ordered
I was making this very simple lex program (just an introductory program). But on
The problem: making a very simple style switcher with js (without inline event handling).
I'm making a very simple 2D RPG in Java. My goal is to do
We're making some calls to some very simple JSON web services in .NET CF
I'm making a very simple ad button system using ASP.NET 2.0 The advertisment is
I'm making a very simple website with ROR. class Product < ActiveRecord::Base belongs_to :category
I am using cakePHP and is making a very simple message board. I came
I have a very simple mockup I'm making for a client that uses the

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.