http://www.perlmonks.org?node_id=451186


in reply to Re^5: Tokenizing and qr// <=> /g interplay
in thread Tokenizing and qr// <=> /g interplay

Okay, so an array of [ qr, $good ] combos could help me if my example was something like:

for my $file_in_string_form ( @all_files ) { for my $crummy_good_ar (@corrections_to_make) { my ($crummy, $good) = @$crummy_good_ar; $file_in_string_form =~ s/$crummy/$good/ig; } }
And in the meantime, if I have no additional files to process, I might as well compile the regexen as needed?

Thanks! I think I understand now. :-)