title: How do I read double quotes(") or single quotes(') through command line into my perl program?
body: <p>I am trying to use use arguments passed as command line arguments into my script, But while doing so the double quotes(") and single quotes(') vanishes.
  for example on running the following:</p>
  
  <pre><code>#!usr/bin/perl
  
  use strict;
  use warnings;
  use Data::Dumper;
  
  my $argument_list = join(" ",@ARGV);
  
  print "$argument\n";
  </code></pre>
  
  <p>Upon running the above code:</p>
  
  <pre><code>perl test1.pl name1 "name2 and name3"
  </code></pre>
  
  <p>I am getting the following output:</p>
  
  <pre><code>name1 name2 and name3
  </code></pre>
  
  <p>Is there any way to include the double quotes along with the command line arguments so that the final argument is <code>"name2 and name3"</code> and not just <code>name2 and name3</code> ?</p>
  
  <p>I have tried using '\' to escape double quotes <code>perl test1.pl name1 \"name2 and name3\"</code> but it only makes it worse by considering <code>"name2</code> as a separate argument <code>and</code> as a separate argument and <code>name3"</code> as another argument.</p>