It sounds like you want something like:
my $InputFile = "sample_log_file.txt"; open my $IN, '<', $InputFile or die "cannot open $each_file for writin +g: $!"; undef $/; # undef by default if localized my @all_metrics = <$IN> =~ /[^>]+/g; print Dumper( \@all_metrics ); close $IN;
In reply to Re: Push the each group item into array
by jwkrahn
in thread Push the each group item into array
by senthil_v
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |