Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: To remove duplicate lines and add digits as per loop

by BillKSmith (Monsignor)
on Mar 16, 2021 at 14:47 UTC ( #11129763=note: print w/replies, xml ) Need Help??


in reply to To remove duplicate lines and add digits as per loop

What do you mean "I am removing the duplicate lines"? Your test case clearly contains duplicate lines which are not removed.
Bill
  • Comment on Re: To remove duplicate lines and add digits as per loop

Replies are listed 'Best First'.
Re^2: To remove duplicate lines and add digits as per loop
by marinersk (Priest) on Mar 17, 2021 at 03:28 UTC

    At a guess, this is a language barrier issue. He is removing the "duplicateness" by adding a tag which makes each line unique; in a sense, that is "removing duplicates" -- though this isn't the phrase a native English speaker would likely use to describe the process. Gotta' make room for the human factor here; some tolerance in language parsing can be healthy.

      Thanks for the correction. I certainly did not intend any insult, I really did not understand the question.
      Bill

        Oh, I didn't see it that way. It was more a pedantic generalized statement on my part.

        I should probably be more careful with my phrasing. : -)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2022-05-28 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (99 votes). Check out past polls.

    Notices?