I would have superficially read that syntax to mean – would have initially assumed it to mean – “an empty List.” I would assume that it otherwise makes no syntactic sense for there to be two parentheses back-to-back with nothing in-between them. I would have soon-enough seen the “error” of my ways, but there are many times when you see something written in the source-code of a program whereby you assume that you know what it means, but the language-designers thought differently. So it goes.
| [reply] [Watch: Dir/Any] |
I would have superficially read that syntax to mean - would have initially assumed it to mean - "an empty List." ... I would have soon-enough seen the "error" of my ways, but there are many times when you see something written in the source-code of a program whereby you assume that you know what it means...
But the syntax () does mean an empty list. And if your complaint is that you only "superficially read" the source code and "assumed" its meaning, then you're really just complaining about your own ignorance. The fact that a scalar $foo can only hold exactly one thing is Perl 101, and how the assignment of a list to a scalar behaves is - if we're being generous - Perl 102. If your Perl knowledge doesn't even reach that level after 7+ years of posting to a Perl-only website, all this time you've spent trying to "answer" questions here seems like kind of a waste, no?
| [reply] [Watch: Dir/Any] [d/l] [select] |