in reply to How do I extract (x) number of lines from database?
if you've got them in an array it should be fairly easy to do this using an array slice.
my @array = <FILE>; #or however you've retrieved your lines foreach my $line ( @array[99..199] ) { #munge line here }
you can put variables in for the bottom and top of your slice range.
p.s., you might really want to consider using either a templating system, CGI.pm, or at the very least HEREDOC syntax to deal with all that messy html output.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do I extract (x) number of lines from database?
by Anonymous Monk on Sep 21, 2001 at 09:16 UTC |