in reply to Why is my array empty?

Well, I don't think you can use the <> operator on an arrayref. It only works on filehandles (or simple scalar variables, which might contain a reference to the filehandle). Why not just <INPUT>?

Also, if you are splitting on commas, then you need to do that:

@lines = <INPUT>; for ( 0 .. $#lines ) { $url_info[$_] = [ split /,/ , $lines[$_] ]; }

But maybe I am being incredibly dumb and you know clever perl tricks that I wot not of.

dave hj~