is it possible to partition a perl message by bits?

Posted on 2006-05-29
Last Modified: 2010-05-18
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?  

Question by:dwcronin
    LVL 6

    Expert Comment


    Author Comment

    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.
    LVL 84

    Accepted Solution


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
    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.…
    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…
    This video discusses moving either the default database or any database to a new volume.

    754 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

    24 Experts available now in Live!

    Get 1:1 Help Now