in reply to what is the best way to seperate the digits and strings from variable ?
For this simple case,
$digits = $1 if $variable =~ /(\d+)/; [download]
the lowliest monk