The problem you have with your script is caused by Radimus' readfile udf.

It returns always 2 additional empty array elements. [edit: the original udf from the library returns only 1 additional empty!!]
So in the loop you try to split an empty element to 3 chunks and of course fail with "array reference out of bounds" referencing the non-existant elements of $temp.

[edit: oh, by the way in your posted script you have puzzled the elements of $blah, the one referencing $temp[1] ]


Edited by Jochen (2006-04-25 10:25 AM)
_________________________