Syntactic Confectionery Delight | |
PerlMonks |
Re^2: @ARGV ignores quotes [ZERO WIDTH SPACE]by kcott (Archbishop) |
on Jun 19, 2021 at 23:28 UTC ( [id://11134046]=note: print w/replies, xml ) | Need Help?? |
G'day hrcerq, "I hope I'm not saying anything stupid, but is ​ a subroutine call?" There's certainly nothing "stupid" in your question. I was going to comment on that directly myself before scrolling down and seeing your post. The ​ is an HTML entity reference: a code which references a specific character. This is its decimal form. You may also see this in its hexadecimal form, ​, or as a named entity, ​. It is the Unicode® ZERO WIDTH SPACE (U+200B) character — the PDF code chart "General Punctuation Range: 2000–206F" has details; "Wikipedia: Zero-width space" has further discussion. How that got into the presented code — perhaps an artefact of a word processor used to write the code; maybe copied from an email; or whatever — is immaterial. The fact that the OP didn't check the Preview before posting (also note the obvious, broken <{line-break}/code> end tag) is of much more concern to me: what other problems exist in the code (not shown) that the OP may not have bothered to check either. "If so, isn't this notation deprecated?" The notation is not so much "deprecated" as syntactically incorrect. Note that the following did not need the strict or warnings pragmata for the compilation to be aborted.
The OP did not run this code! Updates: I had some issues with the title of this post; three versions tried; see "What are the formatting rules for the "Title" of posts?" for details. I'd also fixed a copy/paste error: the first line of the code I posted ($ perl -e ') was originally missing. — Ken
In Section
Seekers of Perl Wisdom
|
|