in reply to Re^3: Need doubled quoted values
in thread Need doubled quoted values

Shouldn't that be  map { "\"$_\"" } (added missing underscore), or perhaps better  map { qq{"$_"} } or even just  map qq{"$_"}, (note: comma is needed)?

c:\@Work\Perl>perl -wMstrict -le "my $s = join '^', map qq{\"$_\"}, 'foo bar', 'baz boff'; print qq{:$s:}; " :"foo bar"^"baz boff":


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

Replies are listed 'Best First'.
Re^5: Need doubled quoted values
by LanX (Saint) on Mar 02, 2015 at 04:10 UTC
    Yes fixing one bug caused another typo.

    Maybe I should stop posting from mobile? :)

    Hmm...

    Well I just decided that I will stop posting code from mobile! :)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)

    PS: Je suis Charlie!