in reply to frac12 to decimal
Behold, the hash holding those is declared with "use vars":
use vars qw(%entity2char %char2entity);
So, after that package has been loaded and compiled, you could reach into that package and change just the values of them keys:
# switch package package HTML::Entities; $entity2char{frac14} = '.25'; $entity2char{frac12} = '.5'; $entity2char{frac34} = '.75'; # switch back to your package package main; # go on with your code
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: frac12 to decimal
by CColin (Scribe) on Feb 09, 2009 at 18:19 UTC | |
by karoshi (Novice) on Feb 10, 2009 at 00:06 UTC | |
by Anonymous Monk on Feb 10, 2009 at 00:45 UTC |