Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How can I split a string into fixed-length parts, rather than on delimiters?

by Kanji (Parson)
on Jul 12, 2002 at 02:37 UTC ( [id://181201]=note: print w/replies, xml ) Need Help??


in reply to How can I split a string into fixed-length parts, rather than on delimiters?

unpack is arguably more appropriate than a regex:

my $fname = '41084109.udp'; my( $v1, $v2 ) = unpack( 'a4 a4', $fname );
  • Comment on Re: How can I split a string into fixed-length parts, rather than on delimiters?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-20 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found