Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Crysallis Absent Member.
Absent Member.

Perl Script Session values

I can't seem to locate an answer to this.. but it seems like this should work.. 

my $DiskMBFreeThreshold;
$DiskMBFreeThreshold = 100;
$Session->Value('DiskMBFreeThreshold', $DiskMBFreeThreshold);

my $ExcludeFilter;
$ExcludeFilter = "[D:|E:|F:|G:|K:|L:|M:|N:|O:|P:|Q:|R:|S:|T:|U:|V:|W:|X:|Y:|Z:]";
$Session->Value('ExcludeFilter', $ExcludeFilter);


So I have these two values... when I attempt to use the text based $Session->Value('ExcludeFilter'); I'm told that

Perl Script execution failed: (in cleanup) Can't call method "Value" on an undefined value at PerlScript line 39.

but the numeric variable works fine.  

This is a threshold policy and I'm setting that value using the parameters...and calling it on an instance filter.. 

$ExcludeFilter = $Session->Value('ExcludeFilter'); <-- this is line 39

Any ideas?

Tags (1)
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.