in reply to Re: Re: Re: Re: Re: Useless use of substr in void context
in thread Useless use of substr in void context

Thank you, I also have a question about using a hash, what do you mean by use undef for the key. Wouldn't this make all keys the same, and where do I put the url? Thanks for all the help!
  • Comment on Re: Re: Re: Re: Re: Re: Useless use of substr in void context

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: Useless use of substr in void context
by leira (Monk) on Feb 25, 2004 at 03:38 UTC
    I believe the suggestion is that you use the URL for the key, and set the *value* to undef. Then you'll still have a hash with all of the URLs in it as keys.

    Like this:

         $fetched{$url} = undef;

    Does this make sense?

    Linda