Solved

Get Perl to accept double quotes (") as input arguments

Posted on 2008-10-02
1
267 Views
Last Modified: 2012-05-05
Hello,
  How do I get Perl to recognize double quotes (") as an input argument?  For example:

perl.exe invoke.pl TEST xmlns:ns1="http://www.example.org"

and I need the 2nd argument to retain the ".

my $var = $ARGV[1];
print $var

Should print
xmlns:ns1="http://www.example.org"

Thanks
0
Comment
Question by:jhughes4
1 Comment
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
Comment Utility
In csh/bash/ksh
perl.exe invoke.pl TEST 'xmlns:ns1="http://www.example.org"'
in dos shell
perl.exe invoke.pl TEST xmlns:ns1=\"http://www.example.org\"
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now