|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: basic doubtby AnomalousMonk (Prior) |
| on Oct 27, 2012 at 17:29 UTC ( #1001215=note: print w/ replies, xml ) | Need Help?? |
|
Athanasius has already clearly explained the OPed code as it stands. However, the use of the variable name $hash followed by the capture of the literal string 'server' suggests either we are not seeing the real code or the real code is seriously bent. It is hard to imagine a case in which capturing a literally defined string has any point. A guess, given the variable name, is that the original intention was to deal with an actual hash element. Note the enclosing curly brackets rather than parentheses in this example, which I hope is self-explanatory:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||