![]() |
|
P is for Practical | |
PerlMonks |
Re: What does $_ = qq~"$_"~ do?by Paladin (Vicar) |
on May 27, 2019 at 18:27 UTC ( #11100594=note: print w/replies, xml ) | Need Help?? |
qq is the generic double quoting operator. It's "" with using different delimiters. So the line $_ = qq~"$_"~; encloses whatever text is in $_ with double quotes. It's the same as $_ = "\"$_\""; without having to escape the " characters.
In Section
Seekers of Perl Wisdom
|
|