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).
Here is my 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";
where SnmpWalk is my function located at path as in variable $path.
Perl returns following error at runtime:
D:\AVI MEHENWAL\PERL\SCRIPTS\PROJECTS\SnmpCheck>perl perl_snmpwalk_v2.0.pl
'D:\AVI' is not recognized as an internal or external command,
operable program or batch file.
How can I fix this problem?