Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

RE: Re: Quick and easy way to prevent multiple votes?

by turnstep (Parson)
on Jun 08, 2000 at 05:53 UTC ( [id://17010]=note: print w/replies, xml ) Need Help??


in reply to Re: Quick and easy way to prevent multiple votes?
in thread Quick and easy way to prevent multiple votes?

> Then suck each line into a regex like /(\S+)\s(.*)/ so that $1 has the
> IP and $2 is the rest of the info you'd want to store...

Quick note: For a large list like the one potentially generated by such a script, a regex will not be as efficient as a split.

  • Comment on RE: Re: Quick and easy way to prevent multiple votes?

Replies are listed 'Best First'.
RE: RE: Re: Quick and easy way to prevent multiple votes?
by PipTigger (Hermit) on Jun 08, 2000 at 13:13 UTC
    I was under the impression that split employs regexes to do it's bidding and if no particular one is specified, it defaults to /\s+/. Maybe it also runs a =~ s/^\s+//; before matching the split field. I'm not sure about the underlying implementation but I thought one of my O'Reilly boox described split like this. Is that not the case? TTFN & Shalom.

    -PipTigger

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-18 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found