Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: print only uppercase sentencesby polypompholyx (Chaplain) |
on Aug 04, 2013 at 15:43 UTC ( [id://1047804]=note: print w/replies, xml ) | Need Help?? |
Unfortunately, print if /O/;will also 'work' on your sample data, and for the same reason. zork42's post is probably the answer to your short-term problem; but rjt's links, and thinking carefully about why Laurent_R's post is almost certainly *not* what you're after would probably be a lot more useful to you in the long-term.
In Section
Seekers of Perl Wisdom
|
|