Solved

Pack statement works in UNIX environment but not Win98

Posted on 2002-05-15
2
190 Views
Last Modified: 2012-06-21
The following statement works fine in the UNIX (HP_UX 10.20) environment:

$FrameSync = pack( 'H*', '1acffc1d' );

However, when I transport this script to Win98, I get the following error:

syntax error near unexpected token 'pack('

What might be my blunder?
0
Comment
Question by:pdouglas
2 Comments
 
LVL 4

Accepted Solution

by:
dda earned 150 total points
ID: 7013034
How do you run your script? Please try "perl yourscript.pl" and see what happen.
0
 

Author Comment

by:pdouglas
ID: 7013432
Good grief! You're right. I have the script running under a bash shell and was assuming that the proper command to launch a program was "bash <scriptname>". It hadn't ocurred to me to use "perl" in the call.

..couldn't see the forest for the trees.

Thanks! :)
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question