in reply to How can i get a substring from a String?
$qname1 = join ".",(split(/\./, $string))[2,3,4];
$qname1 = join ".",(split(/\./, $string))[-3,-2,-1];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can i get a substring from a String?
by Anonymous Monk on Oct 16, 2008 at 13:03 UTC |