http://qs321.pair.com?node_id=1040640


in reply to divide one file into multiple arrays

You could also use quotemeta on your @sites strings, so that the dots can match litteral dots and not any characters.

  • Comment on Re: divide one file into multiple arrays

Replies are listed 'Best First'.
Re^2: divide one file into multiple arrays
by muba (Priest) on Jun 26, 2013 at 09:29 UTC

    Or use \Q...\E
    as in
    push @bad_log, $_ if if /\Q$site\E/