Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^6: How to extract certain range of text and display it?

by annel (Novice)
on Oct 14, 2013 at 04:51 UTC ( #1058127=note: print w/ replies, xml ) Need Help??


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?

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; } }
I used $_ but nothing prints out.


Comment on Re^6: How to extract certain range of text and display it?
Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058127]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2015-08-03 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (48 votes), past polls