ultranerds has asked for the wisdom of the Perl Monks concerning the following question:
..just keeps printing out:my $data = <<_DATA_; == Example header 1 == a f == Header 2 example ==== sub header a sub sub header :) == Testing header item with some stuff in [[fffsdfsdf]] _DATA_ while ($data =~ /^\=\= (.+?)$/m) { print "FOO: $1 \n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: m modifier not doing what I'm expecting?
by Eliya (Vicar) on Dec 21, 2011 at 12:15 UTC | |
by ultranerds (Hermit) on Dec 21, 2011 at 12:28 UTC | |
|
Re: m modifier not doing what I'm expecting?
by moritz (Cardinal) on Dec 21, 2011 at 12:14 UTC | |
by Anonymous Monk on Dec 21, 2011 at 12:56 UTC | |
by moritz (Cardinal) on Dec 21, 2011 at 13:24 UTC | |
by Anonymous Monk on Dec 21, 2011 at 13:46 UTC |