Receiving non-lvalue error when trying to set SessionLogPath in Perl
I'm trying to create a new session and I want to set a SessionLogPath on a Windows host.
# Initialize for Session
my $session = Win32::OLE->new('WinSCP.Session');
$session->SessionLogPath = "D:/SCP_Workflow_Logs/";
When I reach this point in the code I get the error:
Can't modify non-lvalue subroutine call at ********* line 1295.
Does anyone know what's causing this?
# Initialize for Session
my $session = Win32::OLE->new('WinSCP.Session');
$session->SessionLogPath = "D:/SCP_Workflow_Logs/";
When I reach this point in the code I get the error:
Can't modify non-lvalue subroutine call at ********* line 1295.
Does anyone know what's causing this?