Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2023-11-28 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?