in reply to Getting numeric value of an alphabetic string

What do you mean by string of letters?

are you talking about this?

$nums = "123"; $val = $nums * 1; print ("Value = $val\n");

Replies are listed 'Best First'.
Re^2: Getting numeric value of a alphabetic string
by Anonymous Monk on Aug 05, 2005 at 06:56 UTC
    Thanks for the posting. Sorry for not being clearer. By string of letters i meant a name like "V$CEBPA". So if I can convert this string to a numerical value, I can use it to generate the color which will be unique to this identifier. Thanks Nagesh
      Thanks. I completely missed the point! Please see Zaxo's post. You can basically attach a key to a value in a hash. Which should give what you want

      -SK