X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/e20a73e69afd8061db197eb607700ce66ac70552..e42bf56734a8ef1b890fb42df3dbb719456de225:/Shiar_Sheet/FormatChar.pm diff --git a/Shiar_Sheet/FormatChar.pm b/Shiar_Sheet/FormatChar.pm index 9a00276..d7c59c1 100644 --- a/Shiar_Sheet/FormatChar.pm +++ b/Shiar_Sheet/FormatChar.pm @@ -173,8 +173,8 @@ sub cell { } } else { - if ($_ eq 'hex' or $cell =~ /^[^a-zA-Z]$/) { - $anno = sprintf(' %04X', 'value', ord $cell); + if ($_ eq 'hex' or $input =~ /^[^a-zA-Z]$/) { + $anno = sprintf(' %04X', 'value', ord $input); last; } }