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

Re: String to two dimensional array

by GrandFather (Saint)
on May 07, 2008 at 03:02 UTC ( #685132=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @array = map {[split]} $str =~ /(.{16})/g;
    
    print "@$_\n" for @array;
    
  2. or download this
    0 X X X X X X X
    X 1 X X X X X X
    ...
    X X X X 4 X X X
    X X X X X 5 X X
    X X X X X X 6 X
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2023-10-04 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?