'...' doesn't interpolate. push @f, '$ and a'; push @f, "'"; print join '', @f; If you want. I have a feeling YDIW and need to step back and present the actual problem. On May 10, 2016 05:36, "Die Optimisten" <inf...@die-optimisten.net> wrote:
> Hi, > > How can I escape a ' inside '...' > e.g. perl -e 'print '$ and a' ' # I don't want to use " > > thank you > Andrew > >