in reply to Re: what is the best way to seperate the digits and strings from variable ?
in thread what is the best way to seperate the digits and strings from variable ?

That last is probably better written as
($variable = '12345(checkthis)') =~ tr/0-9//dc;

Caution: Contents may have been coded under pressure.
  • Comment on Re^2: what is the best way to seperate the digits and strings from variable ?
  • Download Code

Replies are listed 'Best First'.
Re^3: what is the best way to seperate the digits and strings from variable ?
by cog (Parson) on May 09, 2005 at 16:04 UTC
    I said "silly regexen twisting". I was meaning to show that there are a bunch of ways to do it (slightly off-topic, I know, but still worth mentioning).