Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: How to read a file and add value for same key

by Skeeve (Vicar)
on Jul 31, 2013 at 09:49 UTC ( #1047223=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    1 while (s/(\w)\s(\d+)(.*)(\s\1\s)(\d+)/$1." ".($2+$5).$3/e);
  2. or download this
    $ cat test
    a 1 b 3 c 5 a 2
    a 1 b 3 c 5 a 2 a 3 b 3 c 5
    $ ./samekey anothertest
    a 6 b 6 c 10

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047223]
[LanX]: how difficult is IP spoofing in the intranet?
[Your Mother]: I'm curious to hear the answer.
[LanX]: never mind
[LanX]: we have a vulnaribility task force in the company flooding our servers with fake attacks
[LanX]: I called them complaining about the load, and they told me to just ignore their IP
[LanX]: ... in the logs
[LanX]: but I tend to just reject it by an apache rule
[shmem]: LanX: start a DDOS upon their servers :-P
[LanX]: well I could hack a honeypot xD

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (15)
As of 2018-03-19 14:33 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.