You are well read and astute. The text did not say that exactly but I inferred it from the following text:
Perl identifiers that begin with digits or punctuation characters are
+exempt from the effects of the package declaration and are always for
+ced to be in package main
So the question that left me with was, 'what exactly is considered a punctuation character?'
The history of the underscore has a lot to do with typewriters -- it was apparently the key people used to use to underscore words. However, that history is irrelevant to how we use it today. When I visit thesaurus.com:
Punctuation is the act or system of using specific marks or symbols in
+ writing to separate different elements from each other or to make wr
+iting more clear.
My use, and the question, was in line with this definition. I've seen people use underscores in method names to tell others that 'this method is private -- do not use it.' So the question is perfectly valid -- how does one do the same thing with a variable? I figured I would try an underscore and I got a weird behavior.
Celebrate Intellectual Diversity
|