> > I'm working through the exercises in the Alpaca book. I don't > > understand why you have to pass the check_items_for_all > subroutine a > > reference to a hash. Why can't you just pass it the hash itself... > > check_items_for_all(%all) instead for (\%all) ? Could someone pls > > explain this to me? > > You can do it either way if you want it is just that passing > a reference is more efficient.
Just out of curiosity, if you pass the hash, won't it create a 'copy' of the original, manipulate it so that in the end you may have two different versions (modifications) of the same hash? As I understand it, if you pass a href, then you actually work with the original hash without making a copy? Do I understand this right? Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>