http://www.perlmonks.org?node_id=992371


in reply to why does this perl routine error?

You have more than one split in there. If the first split can't split because the search string isn't found then the complete string would be in $url[0]. Consequently $url[1] would be undef. Same for @url1

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

    Thank I will look into this now:) I am happy when i finally program with strict and warnings on since I can declare lexicals strictly and make easily reusable modules:)