in reply to
String Literals in Perl
hello\cZathis is a test
The perl string literal 'hi\there' has 8 characters: h, i, \, t, h, e, r, e
The perl string literal "hi\there" has 7 characters: h, i, <Tab>, h, e, r, e
'hi\there' #has eight characters and represents"hi\there"
was confusing so I updated it to:
'hi\there' #has eight characters and represents"hi\\there" (one \ in the string)
More importantly, however:
'blah\\blah' #has ten characters and represents "blah\\blah"
was incorrect so I updated it to
'blah\\blah' #has nine characters and represents "blah\\blah" (one \ in the string)
Thanks for the note. Next time, please don't remove the "Re^X:" from the front of the title.
Use two parentheses: (Like this: :) )
Use one parenthesis: (Like this: :)
Reverse direction of the smiley: (Like this: (: )
Use angle/square brackets instead of parentheses
Use C-style commenting to set the smiley off from the closing parenthesis
Make the smiley a dunce: (:>
I disapprove of emoticons
Results (27 votes),