HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Perl syntax errors when run on HP-UX
Operating System - HP-UX
1827303
Members
3264
Online
109961
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
04-29-2002 03:00 AM
04-29-2002 03:00 AM
Dear Forumers,
I'm currently have a play around with Perl and as usual jumping in at the deep end I'm starting with sockets programming. I have a simple little script which works find on my Mandrake 8.2 install but gives me the following error when run on HP.
Any help would be much appreciated.
Thanks
Tony
"use" may clash with future reserved word at /tmp/talk.pl line 3.
syntax error in file /tmp/talk.pl at line 3, next 2 tokens "use IO"
"use" may clash with future reserved word at /tmp/talk.pl line 4.
syntax error in file /tmp/talk.pl at line 26, next 2 tokens "->"
syntax error in file /tmp/talk.pl at line 28, next 2 tokens "->"
syntax error in file /tmp/talk.pl at line 34, next 2 tokens "}"
syntax error in file /tmp/talk.pl at line 46, next token "}"
Execution of /tmp/talk.pl aborted due to compilation errors.
I'm currently have a play around with Perl and as usual jumping in at the deep end I'm starting with sockets programming. I have a simple little script which works find on my Mandrake 8.2 install but gives me the following error when run on HP.
Any help would be much appreciated.
Thanks
Tony
"use" may clash with future reserved word at /tmp/talk.pl line 3.
syntax error in file /tmp/talk.pl at line 3, next 2 tokens "use IO"
"use" may clash with future reserved word at /tmp/talk.pl line 4.
syntax error in file /tmp/talk.pl at line 26, next 2 tokens "->"
syntax error in file /tmp/talk.pl at line 28, next 2 tokens "->"
syntax error in file /tmp/talk.pl at line 34, next 2 tokens "}"
syntax error in file /tmp/talk.pl at line 46, next token "}"
Execution of /tmp/talk.pl aborted due to compilation errors.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 03:20 AM
04-29-2002 03:20 AM
Solution
Hi
This is a known problem.
Check the version of perl on the system.
#what `which perl`
You should have perl5 installed .There may already be perl5 on your system. Check /opt/perl*/bin directory, if it exists and check the version there. If it is not there, download the perl5 version and also remember to set the /usr/sbin/perl link to point to the new binary.
Steve Steel
This is a known problem.
Check the version of perl on the system.
#what `which perl`
You should have perl5 installed .There may already be perl5 on your system. Check /opt/perl*/bin directory, if it exists and check the version there. If it is not there, download the perl5 version and also remember to set the /usr/sbin/perl link to point to the new binary.
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 03:32 AM
04-29-2002 03:32 AM
Re: Perl syntax errors when run on HP-UX
Like Steve said, get a newer version of perl:
http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.6.1/
Your mandrake perl is at least 5.0, if not 5.6.
live free or die
harry
http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.6.1/
Your mandrake perl is at least 5.0, if not 5.6.
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2002 05:31 AM
04-29-2002 05:31 AM
Re: Perl syntax errors when run on HP-UX
Thanks guys, I now have perl5 and my script runs fine.
Thanks
Tony
Thanks
Tony
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP