in reply to Tricking modules into thinking scalars are globs. (code)
I went thought a problem like this and asked about it in
pointing a filehandle at a scalar or array ? and used my solution in More junk from lindex.
Just my 2 cents, and might be some help to you :)
lindex
Just my 2 cents, and might be some help to you :)
lindex
In Section
Seekers of Perl Wisdom