What is the difference between setting a hash like this:
$fooref->bar('cat');
and like this:
$fooref->{bar} = 'dog';
Apparently each statement is setting an entirely different hash.
Which is the proper way to do it?
And also if I were to concatenate the hash with a string using double quotes...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.