I can see what you are trying to do. You want the third column of the first ten lines in an array.
You need to invert the Array-of-Arrays.
Rather than an array of the split lines, you need an array of each column.
You can do this with map, rather than a push split as you parse the file.
Once you have it inverted you would say @sortarr->[0..10] to get what you want.
Update: Oh! I see why $sortarr[0..10] is compiling. It evaluates the array 0..10 in a scalar context, which gives you its length. It then uses this length as the index to a single element of @sortarr. use warnings may have helped. -Andrew.
In reply to Re: Creating a Slice through a 2 dimensional array
in thread Creating a Slice through a 2 dimensional array by felonius
<code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>