cutter has asked for the wisdom of the Perl Monks concerning the following question:
Some code I have tried follows. It does not find the dates associated with the calender entry.I have looked at the PerlFAQ and just about had my head explode reading the Doc for Parse-RecDescent module. Any help apprecated.calendar: Calendar_1_test 11/01/03 11/02/03 calendar: Calendar_2_test 01/02/03 01/04/03 calendar: Calendar_3_test 03/01/03 03/02/03
$file="test_file.txt"; $StrSearch = "calendar: Calendar_2_test"; open TEST, $file; while (<TEST>) { if (/$StrSearch/) { print "1\n";} else { if (/$StrSearch(.*?)calendar/qs){ print "1\n";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I extract data?
by jdporter (Paladin) on Dec 26, 2002 at 19:38 UTC | |
by jdporter (Paladin) on Dec 26, 2002 at 23:37 UTC | |
|
Re: How do I extract data?
by Wonko the sane (Curate) on Dec 26, 2002 at 19:56 UTC | |
|
Re: How do I extract data?
by poj (Abbot) on Dec 26, 2002 at 19:59 UTC | |
|
Re: How do I extract data?
by cutter (Acolyte) on Dec 26, 2002 at 20:15 UTC |