Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl while(<DATA>){ if($_ =~ m/publication date/){ print $_; } } __DATA__ These are the dates. The publication date is 20-10-09 The publicatiion dateee is 20-05-08 The publication dat is 10-06-07 The publication date's are 20-10-09,29-02-08
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Match typo
by almut (Canon) on Sep 11, 2009 at 05:43 UTC | |
|
Re: Match typo
by Your Mother (Archbishop) on Sep 11, 2009 at 06:46 UTC | |
by Anonymous Monk on Sep 11, 2009 at 08:20 UTC | |
by almut (Canon) on Sep 11, 2009 at 08:40 UTC | |
| |
|
Re: Match typo
by ikegami (Patriarch) on Sep 11, 2009 at 05:53 UTC | |
|
Re: Match typo
by JavaFan (Canon) on Sep 11, 2009 at 10:46 UTC | |
|
Re: Match typo
by bichonfrise74 (Vicar) on Sep 11, 2009 at 17:41 UTC | |
|
Re: Match typo
by ww (Archbishop) on Sep 11, 2009 at 11:16 UTC | |
|
Re: Match typo
by graff (Chancellor) on Sep 11, 2009 at 23:20 UTC |