>my content = $mech->content();
>my @lines = splice(@{split(/\n/, $content)}, attempt, start + $range);
>
>content() should return a scalar that you can split on new lines and then just
>splice up.
>
Good idea splitting on newline but splice won't work because the range changes every
day. If I take the source view from the browser and make a file from it, the range
operator(with paterns) works like a charm. All my attempts with the same syntax on
an array created by split produce the following error:
Use of uninitialized value in pattern match (m//)
This is because, I think, according to perlfunc:
"If either operand of scalar .. is a numeric literal, that operand is evaluated by
comparing it to the $. variable, which contains the current line number for your input
file. "
I'm not sure I know what this means. My idea is simple and not particulary esoteric;
it shouldn't be this difficult. I guess I'll go back to creating a file from the
content. Thanx again, Stu
____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10