Re: bug in URL::URL class

Nick Ing-Simmons (nik@tiuk.ti.com)
Tue, 4 Jun 1996 08:21:37 +0100


Marc Unangst <mju@cs.cmu.edu> writes:
>If you create a URI::URL object for a URL with a fragment, and then
>delete the fragment by calling frag(""), the stringified version of
>the URL still contains a "#".  For example, this program:

That is "correct" IMHO. Calling 

    $url->frag(undef);

Reads better (says what you are doing) and works:

perl -x /home/road17/nick/msgs/store/msgs.96.06/mju96Jun03.1615.71
before: url->frag = foo
before: url->abs = http://www.cs.cmu.edu/~mju/index.html#foo
after : url->frag(undef)
after : url->abs = http://www.cs.cmu.edu/~mju/index.html