in reply to Re: Many matches to an array
in thread Many matches to an array

How do I put entire content into an array?

Replies are listed 'Best First'.
Re^3: Many matches to an array
by hsinclai (Deacon) on Jul 15, 2004 at 11:53 UTC
    maybe start with

    my @content = get_content($url); foreach my $var ( @content ) { next if $var =~ / undesirable regex /; $var =~ / your regex / && do something; .. }
    I think this is what Paulster2 means.. at least now the @content you fetched is going to get processed line by line..