title: How do I make Perl understand to navigate to a directory with whitespaces in the path?
body: <p>I am trying to navigate to a directory where I have my function stored which I need to use in my script for result generation. But I am stuck because Perl is not able to understand my syntax for function location (with whitespaces).</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$path ="D:\\AVI MEHENWAL\\PERL\\SCRIPTS\\PROJECTS\\SnmpCheck";
  
  $snmpwalk = `$path\\SnmpWalk.exe -q -t:60 -r:$ip -v:2c -c:$comm -os:1.3.6.1.2.1.1 -op:1.3.6.1.2.1.1.9`;
  print "$snmpwalk";
  </code></pre>
  
  <p>where SnmpWalk is my function located at path as in variable $path.</p>
  
  <p>Perl returns following error at runtime:</p>
  
  <pre><code>D:\AVI MEHENWAL\PERL\SCRIPTS\PROJECTS\SnmpCheck&gt;perl perl_snmpwalk_v2.0.pl
  'D:\AVI' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>How can I fix this problem?</p>