Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: help neeed in unpack

by Corion (Patriarch)
on Feb 10, 2006 at 07:43 UTC ( [id://529296]=note: print w/replies, xml ) Need Help??


in reply to help neeed in unpack

unpack counts spaces as characters of their own. You might want the following unpack template:

$line="123 456 789"; @w=unpack('A3xA3xA3',$line); print "@w";

Or maybe you just want split:

my @w = split /\s/, $line;

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://529296]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2025-02-14 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found