Syntactic Confectionery Delight | |
PerlMonks |
Why doesn't "my ($x) = @);" generate a syntax error?by zork42 (Monk) |
on Jun 13, 2013 at 06:45 UTC ( [id://1038684]=perlquestion: print w/replies, xml ) | Need Help?? |
zork42 has asked for the wisdom of the Perl Monks concerning the following question:
I accidentally typed "my ($x) = @);" instead of "my ($x) = @_;" Shouldn't the former have generated a syntax error? perlvar.html says there is a "$)" variable, but "@)" is not mentioned. I suspect I've missed something obvious, but I can't see what!
Back to
Seekers of Perl Wisdom
|
|