Link to home
Start Free TrialLog in
Avatar of dwcronin
dwcroninFlag for United States of America

asked on

is it possible to partition a perl message by bits?

Perl, UDP, and message division are new to me so please keep that in mind.  I'm trying to receive a 12 byte UDP message (I'm told that's the smallest UDP division).  It is divided as:

32 bits
8 bits | 8 bits | 8 bits | 8 bits
32 bits

1) Should (can) I divide this into 6 different variables or possibly array elements using perl?  

2) I think that sometimes the divisions are numbers.  Is there a standard way to tell if it is text or numeric?  

Thanks,
Dan
Avatar of tone28
tone28

Avatar of dwcronin

ASKER

Sorry. I left out informtion that I thought wouldn't matter.  I was wrong.  I'm using LabVIEW 8.0.  It has tools where I get a UDP signal.  I then take this signal and I'm trying to pull the information out by using another LabVIEW tool that matches regular expressions.  I don't think that I can use the pack command b/c the tool only lets me match a regular exspression.  If you know LabVIEW and know that it's easier to get the info a different way, please tell me.  Sorry I left out some of the info - lv, perl, and data signals are all new to me.
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial