You have subroutines named "unpack" and "pack" in the current package, so it doesn't know if you wanted to call the builtin pack and unpack or yours. I suggest changing the names of your "pack" and "unpack" subs, which will resolve the ambiguity.
In reply to Re: "Ambiguous call" in decimal to binary conversion
by theorbtwo
in thread "Ambiguous call" in decimal to binary conversion
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |