splitting the string at the colons and joining the first three fields seems the easiest way to me:
join( ':',(split /:/,$string)[0..2] )
In reply to Re: Using the Substr
by hdb
in thread Using the Substr
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |