Solved

Pack statement works in UNIX environment but not Win98

Posted on 2002-05-15
2
188 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sending email via Perl on Windows 3 137
perl to mysql 5 130
Merge files & delete row based on criteria using Perl. 1 100
batch script for automated email 12 100
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now