Solved

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

Posted on 2008-10-02
1
287 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
ID: 22629425
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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