Receiving non-lvalue error when trying to set SessionLogPath in Perl

Advertisement

Ully
Joined:
Posts:
2
Location:
UK

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?

Reply with quote

Advertisement

Ully

RESOLVED: Receiving non-lvalue error when trying to set SessionLogPath in Perl

Discovered through the GitHub that you have to use SetSessionLogPath() to set this value. This isn't in the documentation on the winscp.net website.

Reply with quote

Advertisement

You can post new topics in this forum