in reply to Re^2: why does this perl routine error?
in thread why does this perl routine error?

But $url1 has a value, how can it be undef if it has a value?

How do you know?

As Basic debugging checklist says, use Dumper, show the output

  • Comment on Re^3: why does this perl routine error?