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+)/;
will do the job, but things rarely stay this simple :-).

the lowliest monk

  • Comment on Re: what is the best way to seperate the digits and strings from variable ?
  • Download Code