Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

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
0
dwcronin
Asked:
dwcronin
1 Solution
 
tone28Commented:
0
 
dwcroninAuthor Commented:
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.
0
 
ozoCommented:
/(....)(.)(.)(.)(.)(....)/s
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now