Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: divide one file into multiple arrays

by Eily (Monsignor)
on Jun 25, 2013 at 18:04 UTC ( #1040640=note: print w/replies, xml ) Need Help??


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/

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040640]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2020-07-10 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?