Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: How can I make a string unique (quicker than my approach at least)

by hippo (Archbishop)
on Apr 02, 2024 at 11:12 UTC ( [id://11158647]=note: print w/replies, xml ) Need Help??


in reply to Re: How can I make a string unique (quicker than my approach at least)
in thread How can I make a string unique (quicker than my approach at least)

my( $pre, $post ) = split m{(?<=>)};

Interesting - you have assumed that the <TAB> in the OP's data is literally those 5 characters whereas in my reading they were using this to indicate a single tab character. Doesn't matter really, but it would make the split regex simpler if it were a single tab.


🦛

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2025-12-09 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (90 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.