Regardless of how you think you could at least test stuff.
for (0..255) { print "$_=" . chr($_) . "\n" if chr($_) =~ /;/i };That should print 59=; out showing that /;/i is only matching ; and not lowercase ;, whatever that would be.
print uc(';'), lc(';'); #outputs ;;FYI I like to use perl -dex (as recommended by tye I think) which gives you a nice way to run perl code and see its results.
In reply to Re^3: Making a regex case insensitive
by eric256
in thread Making a regex case insensitive
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |