in reply to Re: Basic transformations
in thread Basic transformations
The trick is that perl will evaluate a literal number as hex if you prefix it with '0x', you then need to use eval to force perl to re-evalute it as a number instead of a string.Any reason not use the build in hex function, and instead use an eval, which, if the data comes from an untrusted source, has potential to have some "unwanted"side effects?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Basic transformations
by chrestomanci (Priest) on Nov 30, 2010 at 12:36 UTC | |
by JavaFan (Canon) on Nov 30, 2010 at 14:23 UTC |