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
In reply to Re: frac12 to decimal
by karoshi
in thread frac12 to decimal
by CColin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |