Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Parse txt file into array of array

by jwkrahn (Monsignor)
on Jun 06, 2013 at 10:31 UTC ( #1037434=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open (A1, "<2 normaal.txt") or die "can't open";
    
    ...
        chomp $in;
        push (@array1, split(//, $in));
    }
    
  2. or download this
    open my $A1, '<', '2 normaal.txt' or die "can't open '2 normaal.txt' b
    +ecause: $!";
    
    ...
    while ( my $in = <$A1> ) {
        push @MainArray, [ $in =~ /[[:alpha:]]/g ];
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1037434]
help
Chatterbox?
[Lady_Aleena]: Would you use a module that is almost 150 characters to type with the use and importing all subroutines?
[LanX]: use module :all ?
[Lady_Aleena]: Lax, that would take it down to a little less than 100 characters. The module name is nearly 80 characters long.
Lady_Aleena has fumble fingers today.
[Lady_Aleena]: Sorry for the name typo LanX.
[LanX]: never lad_ena!
[LanX]: ;)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-05-24 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?