in reply to "Ambiguous call" in decimal to binary conversion

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.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

  • Comment on Re: "Ambiguous call" in decimal to binary conversion

Replies are listed 'Best First'.
Re: Re: "Ambiguous call" in decimal to binary conversion
by Anonymous Monk on Apr 29, 2004 at 12:57 UTC

    mea culpa ... I did indeed have two subs named pack and unpack -- not in the current package, but in a package being used, and written so long ago (last month) I couldn't remember what was in it.

    Thanks for the jolt

      So why did you export pack/unpack then?