in reply to split a string at a defined index
$var1 = "www,google,yahoo,345"; $var1 =~ s/,([^,]*)\z//; $var2 = $1; [download]