Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Using the Substr

by hdb (Prior)
on Mar 04, 2014 at 19:29 UTC ( #1076945=note: print w/ replies, xml ) Need Help??


in reply to Using the Substr

splitting the string at the colons and joining the first three fields seems the easiest way to me:

join( ':',(split /:/,$string)[0..2] )


Comment on Re: Using the Substr
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2015-07-03 07:26 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 (48 votes), past polls