theguvnor has asked for the wisdom of the Perl Monks concerning the following question:
I was reading an interesting article in The Perl Journal right here that included some code for an RPC server daemon and client. While I recommend the article on its own merits, I was a little mystified by the following assignment in a subroutine:
my ($keywords) = "@_";Why would Jon Orwant (of Camel fame and publisher of TPJ) wrap his subroutine arguments array in double quotes like that? I don't argue that it will work, but why add the overhead of interpolation? Anyone got some mystical insights on this?
Thanks in advance... Guv
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Seeking enlightenment: is there a reason for this unusual syntax?
by dvergin (Monsignor) on Feb 17, 2002 at 03:55 UTC | |
|
Re (tilly) 1: Seeking enlightenment: is there a reason for this unusual syntax?
by tilly (Archbishop) on Feb 17, 2002 at 04:01 UTC | |
|
Re: Seeking enlightenment: is there a reason for this unusual syntax?
by Anonymous Monk on Feb 17, 2002 at 03:52 UTC | |
|
Re: Seeking enlightenment: is there a reason for this unusual syntax?
by theguvnor (Chaplain) on Feb 17, 2002 at 04:16 UTC |