catfish1116 has asked for the wisdom of the Perl Monks concerning the following question:
Quick question. How do I get the script below to match on mixed case:
my $sum = 0; while ( <>) { $sum++; last if m/perl/; } print "There were $sum lines until I found perl\n";
TIA The Catfish
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: mixed case with match
by kcott (Archbishop) on Sep 21, 2020 at 19:21 UTC | |
Re: mixed case with match
by AnomalousMonk (Archbishop) on Sep 21, 2020 at 19:11 UTC | |
Re: mixed case with match
by AnomalousMonk (Archbishop) on Sep 21, 2020 at 21:23 UTC | |
Re: mixed case with match
by BillKSmith (Monsignor) on Sep 21, 2020 at 23:06 UTC | |
Re: mixed case with match
by gam3 (Curate) on Sep 22, 2020 at 08:30 UTC | |
Re: mixed case with match
by Anonymous Monk on Sep 21, 2020 at 19:44 UTC |