my $var = "1:2:3:4:5:6"; my $x = split(":",$var)[4]; [download]
In reply to subroutine()[$x]; by devslashneil