As for 'array manipulation', what kind of manipulation are you looking for? What is it what you want that splice doesn't do for you?my (@array, $keep); while (<$handle>) { if (!@array) {$keep = /FIRST_PATTERN/;} next unless $keep; # Next if we haven't seen the first pattern. push @array, $_; next unless $keep = !/SECOND_PATTERN/; # Next unless the second pattern is seen. process_array \@array; # Process and print print @array; @array = (); }
In reply to Re: Simple Array Followup
by Perl Mouse
in thread Simple Array Followup
by jriggs420
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |