Parsing of HEX bytes using Perl

2006-10-24 Thread Dharshana Eswaran

Hi all,    I am a student working on a project using Perl.    My work is...    I have few hex bytes as inputs for my program. Its a series of hex bytes. for eg: 01 0a ab 2a 1c etc... 
   Here each byte stands for some representation. I also have a data file in which all the representations are stored. For eg:  01 => "abcd"  02 => "ertg"  1c => "srfrf" 
 etc...    I have to parse the input hex bytes using this data file and the output should show the parsed input series.   
The problem i face in linear search id, there are few hex bytes in
which the digits are same but the representations are different. For
eg: 01 stands for "abcd" and also in some other place it stands for
"cdfv" also.     My program follows ASN.1 format. I mean The bytes come in a fashion like TYPE and then LENGTH and then VALUE..    So i have to parse in teh above mentioned manner.     I am unable to come up with an algorithm for the same as i am very new to Perl programming.  
   Also, the data files are very huge and input also is very huge file in which there are several hex bytes.     So plz can anyone help me in this?
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Perl-Win32-Users Digest, Vol 3, Issue 18

2006-10-24 Thread David Golden
On 10/24/06, Sisyphus <[EMAIL PROTECTED]> wrote:
> Anyway, the point of this reply is to suggest that it would be an
> improvement if the Strawberry perl installer gave the user the option to
> *not* have the path or registry settings interfered with - I think it makes
> it "nicer" if the option exists.

Yes, we've got that on the feature backlog list.  :-)

David
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Perl-Win32-Users Digest, Vol 3, Issue 18

2006-10-24 Thread Sisyphus

- Original Message - 
From: "David Golden" <[EMAIL PROTECTED]>
.
.
>  Were you running as a user with
> administrator permissions?
>

Good point. I eventually got around to installing Strawberry Perl a week or
two back. I was running as user, but *without* admin permissions. Strawberry
Perl installed ok, but the attempts to modify the path/registry settings
failed. From my point of view, this was a good thing, as I didn't want the
path to be modified or any registry settings interfered with.
Anyway, the point of this reply is to suggest that it would be an
improvement if the Strawberry perl installer gave the user the option to
*not* have the path or registry settings interfered with - I think it makes
it "nicer" if the option exists.

(Apologies if the feature I'm suggesting is already present and I missed it.
And if it's not yet present, then I suspect the issue has already been
raised . again, apologies :-)

Cheers,
Rob


___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Net::Server::Daemonize Error

2006-10-24 Thread Michael Papet
The net-server package isn't ported well for win32.

Error:
"The getpwnam function is unimplemented at
C:/Perl/site/lib/Net/Server/Daemonize.
pm line 162."

Is there a well-known workaround?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Perl-Win32-Users Digest, Vol 3, Issue 18

2006-10-24 Thread David Golden
> From: "Sisyphus" <[EMAIL PROTECTED]>
> Subject: Re: Strawberry Perl Bugs Report
>
> This is probably *not* the best place to report problems with Strawberry
> Perl - I don't think there are many here who have any involvement with that
> project. There's http://win32.perl.org/wiki/index.php?title=Talk:Main_Page
> or you could post to perlmonks where you'd be liklely to attract the
> attention of people more actively involved with the Strawberry project (so
> long as "Strawberry" appears in the subject line).

I've subscribed to the digest for this list on the off-chance that
there's some relevant traffic on Vanilla/Strawberry Perl.  (Hi, for
those who don't know me, I'm the current release manager for that
project).

Most of the Vanilla/Strawberry discussion is happening on the
win32.perl.org wiki. In particular, the "Vanilla Perl Problem Modules"
page has a long list of win32-specific module issues.  It's the first
place to check, generally.

http://win32.perl.org/wiki/index.php?title=Vanilla_Perl_Problem_Modules

There are also usually some people hanging around on #win32 at
irc.perl.org who can answer some questions.

> From: Michael Papet <[EMAIL PROTECTED]>
> Subject: Strawberry Perl Bugs Report
>
> Platform: WinXP SP2, totally up to date.
>
> Install went okay except for environment paths were
> not set so dmake didn't work in cpan right away.

Strange that the installer failed in that regard, as it should
configure the environment.  Can you give any other details about your
setup that might be unusual?  Were you running as a user with
administrator permissions?

Regards,
David Golden
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: Parallel Port module

2006-10-24 Thread Ken Cornetet
I've never had the opportunity to use this, but it looks like it might
do what you all want http://www.winfordeng.com/products/portio32/

You'll probably have to google a bit for how to get the parallel port in
the mode that you want to use.
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Spencer Chase
Sent: Saturday, October 21, 2006 12:23 AM
To: perl-win32-users@listserv.ActiveState.com
Subject: Re: Parallel Port module

Greetings perl-win32-users,

I have gotten Scott Penrose's parallel port module to work on win32 and
can set data bits reliably. I can not figure out any way to read status
bits from the port. The documentation is virtually lacking.
Methods for set_status and get_status are referenced but there is no
information as to how to use them. I have read the source code of all of
the parallel port modules and can not find clues anywhere. Does anyone
have any information on these methods or an example of how to read the
status and control bits?

--
Best regards,
Spencer Chasemailto:[EMAIL PROTECTED]
67550 Bell Springs Rd.
Garberville, CA 95542  Postal service only.
Laytonville, CA 95454  UPS only.
[EMAIL PROTECTED]
http://www.spencerserolls.com
http://www.spencerserolls.com/MidiValve.htm
(707) 984-8356

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs