Anusha_26 has asked for the wisdom of the Perl Monks concerning the following question:
I have a text file(like posted below),
anusha ramegowda <perl programming1234> "23rd June 2016" #Thursday, 11:05am# <perl programming5678> problem encountered
I'm trying to read the contents of the text file(titlefile) using
open (my $fp, "<", $titlefile) or die "Can't open <$titlefile: $!";It reads all contents except the ones within <chevrons> for e.g. I don't read <perl programming1234> and <perl programming5678>.
I want to read the string within chevrons to able to distinguish between various values. Can anybody please help?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Open() : Not reading all lines in my text file
by choroba (Cardinal) on Jun 23, 2016 at 10:43 UTC | |
|
Re: Open() : Not reading all lines in my text file
by Anusha_26 (Initiate) on Jun 23, 2016 at 10:16 UTC | |
by Corion (Patriarch) on Jun 23, 2016 at 10:39 UTC | |
|
Re: Open() : Not reading all lines in my text file
by perlfan (Parson) on Jun 23, 2016 at 18:34 UTC | |
|
Re: Open() : Not reading all lines in my text file
by $h4X4_|=73}{ (Monk) on Jun 24, 2016 at 08:38 UTC |