in reply to insert element into an array

please submit a small, but complete program that produces the output you show us. You speak of an array, but show us the diagram of a matrix. Paul

Replies are listed 'Best First'.
Re^2: insert element into an array
by Anonymous Monk on Nov 16, 2004 at 14:32 UTC
    Apologies. here is the missing bit
    Input file looks like (space delimited)
    a b c
    d e f
    h i j
    k l j

    File reader code my ($in,$KKK); while( sysread(IN,$in,length(hello)) ) { $KKK .= $in; } my @R = map{ [ split /\s+/ ] }split /\n/, $KKK;
    Hope this helps