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

Re^2: To remove duplicates inside a string

by hdb (Prior)
on Jun 29, 2013 at 08:56 UTC ( #1041433=note: print w/ replies, xml ) Need Help??


in reply to Re: To remove duplicates inside a string
in thread To remove duplicates inside a string

One remark: setting $/="" (paragraph mode) avoids the two step reading of the file:

my @original = do { $/ = ""; <DATA>; };


Comment on Re^2: To remove duplicates inside a string
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (17)
As of 2015-07-30 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (272 votes), past polls