Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: \q quote-matching operator

by Ven'Tatsu (Deacon)
on Aug 26, 2004 at 13:45 UTC ( [id://386018]=note: print w/replies, xml ) Need Help??


in reply to Re: \q quote-matching operator
in thread \q quote-matching operator

You could use the single-quote as your -e delimiter. :-)
You can? I seem to have trouble trying to do that.
C:\>perl -e 'print "foo\n"' Can't find string terminator "'" anywhere before EOF at -e line 1.
In cmd.exe you can escape quotes with either a quote or a backslash, I don't know if either will work in command.com, If some one else doesn't know I'll check after I get home from work both do apear to work in command.com on Windows 98.
C:\>perl -e "print '""'" " C:\>perl -e "print '\"'" "

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://386018]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-23 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found