Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: string spliting

by why_bird (Pilgrim)
on Feb 12, 2009 at 11:54 UTC ( #743282=note: print w/replies, xml ) Need Help??


in reply to string spliting

Check out substr. If you've got more questions, come back and ask for more help. Also, there's lots on the web on all sorts of ways of manipulating perl strings. When you find the function you need, look it up on perldoc, a very handy reference that I wish I'd discovered sooner! Also try SuperSearch, since it's quite likely someone else has already asked the same question.

People here are more likely to help, I've found, if you tell them what steps you've already taken to try and solve your own problem.
why_bird

Update: more references.
........
Those are my principles. If you don't like them I have others.
-- Groucho Marx
.......

Replies are listed 'Best First'.
Re^2: string spliting
by Anonymous Monk on Feb 12, 2009 at 12:02 UTC
    $v = '1234567890AB'; ($a, $b) = unpack('A6 A6', $v) ; print "$v\n$a\n$b";

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2021-10-23 02:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (86 votes). Check out past polls.

    Notices?