in reply to how to assign empty single quotes into a string

"''" will do; so will q('').

After Compline,
Zaxo

  • Comment on Re: how to assign empty single quotes into a string

Replies are listed 'Best First'.
Re^2: how to assign empty single quotes into a string
by bart (Canon) on Jun 10, 2004 at 14:01 UTC
    As will
    '\'\''

    This is Perl, there's always at least one way to do it!

      Or even $var = chr(39) x 2;


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail