in reply to Re^5: How to extract certain range of text and display it?
in thread How to extract certain range of text and write into another file?
I used $_ but nothing prints out.use warnings; use strict; my $test; my @words; open(INFO,"<","testing.pl")||die"Can't open file:$!\n"; chomp (@words=<INFO>); close(INFO); foreach (@words){ if(/^\$ NAME : corry/ .. /\.EON/){ $test=$_; print $test; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: How to extract certain range of text and display it? (snafu)
by Anonymous Monk on Oct 14, 2013 at 06:44 UTC |