in reply to Re^2: What does $_ = qq~"$_"~ do?
in thread What does $_ = qq~"$_"~ do?

Fun fact: the delimiters can even be word characters, provided there's whitespace after the qq:

$ perl -wMstrict -le 'print qq queueq' ueue $ perl -wMstrict -le 'print qq 01230' 123

Replies are listed 'Best First'.
Re^4: What does $_ = qq~"$_"~ do?
by Fletch (Bishop) on May 28, 2019 at 14:32 UTC

    Fun fact: Your coworkers will curse your name unto the end of time if you . . . erm, "code" like this in anything production (especially if you do it without leaving 30 foot high neon warning signs in a comment :). (If you do it in code for personal use you might want to talk with a professional about the deep seated self loathing you're manifesting.)

    Obvious reference to relevant Jurassic Park quote . . .

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

      More fun facts! I once wrote a script to search a word list for words that make valid regexen which convert one valid word into another.

      $ perl -le 'print bangs =~s engender' bands $ perl -le 'print halved =~s avatar' halted $ perl -le 'print stove =~s evener' stone

        haukex is Evil.


        Give a man a fish:  <%-{-{-{-<

        and now pretty please an even weirder example with the x modifier and interspersed white-spaces, using your own name dear haukex! ;-)

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery FootballPerl is like chess, only without the dice