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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:20:18+00:00 2026-05-23T16:20:18+00:00

I have a perl script; on my personal machine, running the exact same version

  • 0

I have a perl script; on my personal machine, running the exact same version of perl (5.10.1), it runs perfectly fine. However, on the server machine, it not only doesn’t run, it gives me odd errors. It ran fine until recently, and I did check that the packages required are installed.

The beginning of the script (where it chokes):

#!/usr/bin/perl
package Hermes;
$VERSION = 3.5;

use FindBin qw($Bin);
push @INC,$Bin;
push @INC ,"/usr/local/lib/perl5/site_perl/5.10.1/";

require("Hermes_config.pm");
$install_Directory = $Config::install_Directory;
push @INC,$install_Directory; #Fix for running from rc.local

use warnings;
#use strict;
use Safe;
use POE;
use POE::Component::IRC;
use Module::Reload;
use Math::Expression::Evaluator;

The output:

Hermes3.0/hermes3.5.pl: 17: package: not found
Hermes3.0/hermes3.5.pl: 18: =: not found
Hermes3.0/hermes3.5.pl: 20: Syntax error: "(" unexpected

(there’s 15 lines of commented open-source copyright notice before the program begins, hence the line numbers).

POE, Module::Reload, and Math::Expression::Evaluator are installed (according to instmodsh), cpan tells me FindBin is up to date, reinstalling Safe didn’t help, so it doesn’t seem to be a missing package – besides which, it’s not telling me a package name that’s missing, it appears to be choking on the word “package”. Reinstalling Perl didn’t help (using apt-get install –reinstall perl).

I recently upgraded the machine’s version of ubuntu; it’s very possible that messed something up, so any hint as to where to start looking 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-23T16:20:18+00:00Added an answer on May 23, 2026 at 4:20 pm

    The issue is that bash is trying to run/compile/interpret the script, rather than perl.

    #! /usr/bin/perl
    

    should be at the very top of your file, don’t have stuff above it.

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

Sidebar

Related Questions

I have a Perl script running on version 5.10 build 1004 of ActiveStates Active
I have a Perl script which runs fine under Perl 5.005 on HPUX 11i
I have a Perl script I wrote for my own personal use that fetches
I have a Perl script that executes a long running process and observes its
I have a Perl script on a Linux (Ubuntu 8.10) machine and I need
I have a Perl script (foo.pl) that loads Foo.pm from the same directory using
I have a perl script that grabs some files from a remote server and
I have a perl script that runs as a daemon looping all the time.
I have a Perl script that runs a different utility (called Radmind , for
I have a perl script that I need to tweak. The script runs and

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.