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

Re: Using the Substr

by hdb (Monsignor)
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] )

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1076945]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-12-13 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (371 votes). Check out past polls.

    Notices?