in reply to Can't call method "url" on an undefined value? But it appears defined!

The following code:

undef $q ? "undef" : "defined"

is unlikely to do what you intend it to do. undef explains it a bit more.

Most likely, you wanted to use defined instead.

  • Comment on Re: Can't call method "url" on an undefined value? But it appears defined!
  • Download Code

Replies are listed 'Best First'.
Re^2: Can't call method "url" on an undefined value? But it appears defined!
by mjfrazer (Initiate) on Jan 26, 2014 at 01:57 UTC
    That was indeed what got me. Thanks for your reply!