- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- PERL script syntax errors
Operating System - HP-UX
1821409
Members
2542
Online
109633
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2002 12:27 PM
тАО07-23-2002 12:27 PM
PERL script syntax errors
Hi,
I have a PERL script running fine on HP-UX 10.20 and perl 5.004_04. The same script has number of sytax errors if it runs on 11.00 and latest PERL version 5.6.1.
The error are like:
syntax error in file ./nicchk.pl at line30, next 2 tokens "use IO"
syntax error in file ./nicchk.pl at line32, next 2 tokens "use IO"
syntax error in file ./nicchk.pl at line33, next 2 tokens "use IO"
syntax error in file ./nicchk.pl at line34, next 2 tokens "use IO"
Illegal modulus of constant zero in file ./nicchk.pl at line 35, next 2 tokens "nicvalue ="
Illegal expression (MODULO) as lvalue in file ./nicchk.pl at line 35, next 2 tokens ");"
syntax error in file ./nicchk.pl at line37, next 2 tokens "->"
syntax error in file ./nicchk.pl at line45, next 2 tokens "->"
syntax error in file ./nicchk.pl at line52, next 2 tokens "->"
syntax error in file ./nicchk.pl at line55, next 2 tokens "->"
./nicchk.pl has too many errors.
Any thoughts about the cause of this?
Thanks,
Dragana S-V
I have a PERL script running fine on HP-UX 10.20 and perl 5.004_04. The same script has number of sytax errors if it runs on 11.00 and latest PERL version 5.6.1.
The error are like:
syntax error in file ./nicchk.pl at line30, next 2 tokens "use IO"
syntax error in file ./nicchk.pl at line32, next 2 tokens "use IO"
syntax error in file ./nicchk.pl at line33, next 2 tokens "use IO"
syntax error in file ./nicchk.pl at line34, next 2 tokens "use IO"
Illegal modulus of constant zero in file ./nicchk.pl at line 35, next 2 tokens "nicvalue ="
Illegal expression (MODULO) as lvalue in file ./nicchk.pl at line 35, next 2 tokens ");"
syntax error in file ./nicchk.pl at line37, next 2 tokens "->"
syntax error in file ./nicchk.pl at line45, next 2 tokens "->"
syntax error in file ./nicchk.pl at line52, next 2 tokens "->"
syntax error in file ./nicchk.pl at line55, next 2 tokens "->"
./nicchk.pl has too many errors.
Any thoughts about the cause of this?
Thanks,
Dragana S-V
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2002 12:32 PM
тАО07-23-2002 12:32 PM
Re: PERL script syntax errors
Go to a CPAN site and download and install the IO module.
-- Rod Hills
-- Rod Hills
There be dragons...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2002 06:09 PM
тАО07-23-2002 06:09 PM
Re: PERL script syntax errors
Rodney has it right, in your 10.20 machine you had a perl module that you don't have on your 11.00 machine.
live free or die
harry
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2002 12:21 PM
тАО07-29-2002 12:21 PM
Re: PERL script syntax errors
Download and install the IO module. It's not installed on your 11.00 machine.
If you don't have/use CPAN, you might want to look into it as it can greatly help in installing perl modules.
If you don't have/use CPAN, you might want to look into it as it can greatly help in installing perl modules.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP