|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: Matching the first letter in a stringby myocom (Deacon) |
| on Jul 31, 2001 at 02:49 UTC ( #101008=note: print w/ replies, xml ) | Need Help?? |
|
If you're going to match a fixed number of letters in a fixed position (e.g., the first letter), use substr instead:
If you want the items checked regardless of case (that is, 'a' is treated the same as 'A'), force it to be lowercase:
As a side note, you're doing some extraneous quoting in there too, on the assignment to $title. I'd suggest changing that line to:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||