in reply to why does this perl routine error?

You know why :) because the variable is undef, obviously

Replies are listed 'Best First'.
Re^2: why does this perl routine error?
by robertw (Sexton) on Sep 07, 2012 at 20:37 UTC

    But $url1 has a value, how can it be undef if it has a value?@url does not generate an error if i print it and gives the html but $url does and still gives me a value:SS

      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