in reply to hash references

Considering that %site1 and %site2 are the same, why not replace the subroutine by a much simpler
sub foo {1/0} # Triggers Illegal division by zero

Replies are listed 'Best First'.
Re^2: hash references
by ricDeez (Scribe) on Aug 01, 2011 at 14:22 UTC

    Well, it would actually be:

    sub foo {0/0}

    But I am totally with you on this... there is something badly wrong with how he is unpacking the vars into the subroutine!

      Unless there's some overloaded constant in effect, there's no difference beteen 0/0 and 1/0. Or 1238/0.