Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: grepping arrays

by BrowserUk (Patriarch)
on Jun 21, 2003 at 21:42 UTC ( [id://267873]=note: print w/replies, xml ) Need Help??


in reply to grepping arrays

Your problem is that you misunderstand the way perlfunc:grep works.

As a hint, this line

if(grep($username, @ignore) || grep($askname, @ignore)) {

Should probably look something like this

if(grep( /$username/, @ignore) || grep( /$askname/, @ignore)) {

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2024-03-28 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found