Hope that helps...use File::Slurp; my $big_text = read_file ('bigFile.txt'); my @blocks = split/HOSTNAME/, $big_text; foreach my $block(@blocks) { print "$block\n"; }
In reply to Re: capturing blocks of data
by McMahon
in thread capturing blocks of data
by natty_dread
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |