On Tuesday 10 May 2016 11:18:06 Die Optimisten wrote: > Hi, > > How can I escape a ' inside '...' > e.g. perl -e 'print '$ and a' ' # I don't want to use "
This seems to work: perl -e 'print '\''$ and a'\' It must be understood as the concatenation of these strings: * literal string: 'print ' * escaped \' * literal string: '$ and a' * escaped \' Frederic