From: "Dan Muey" <[EMAIL PROTECTED]> > I'm tryign to do a perl -e '' command and am wondering if it is > possible to do single quotes inside the single quotes. > IE > > perl -e 'print "joe's mama";' > Obvo=iously won't work > perl -e 'print "joe\'s mama";' > And any other versions of \\' all fail. > > Is there a way to use a single quote inside a single quoted -e > command? Using a different character would just cause the same problem > but with different characters right?
WHAT IS YOUR OPERATING SYSTEM AND/OR SHELL ??? This is not really a Perl question ... you need your shell/command prompt to do something, not Perl. If you use Windows and its cmd.exe/command.com you have to use doublequotes. Fullstop. perl -e "print qq{joe's mama\n}" Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>