News for hackers. Stuff that matters.
Re:Perl first commit: a “replacement” for Awk and sed by kagevf on Sunday July 09, 2023 @02:11PM (#36657167)
Thank you for the tip re: strict! Escaping - that's definitely a sore point. I feel like I get tripped up by embedded double quotes way too often - does perl have a good way to handle them?
Re:Perl first commit: a “replacement” for Awk and sed by tod222 on Sunday July 09, 2023 @04:11PM (#36658397)
From 'man perlop':

           Customary  Generic        Meaning        Interpolates
               ''       q{}          Literal             no
               ""      qq{}          Literal             yes
--

where {} can be any bracket pair.

   my $string1 = q<a single quote '>;
   my $string2 = qq<a double quote ">;