[mh] perl !defined (issue #784)
H Plato <[email protected]> Sun, 18 Sep 2022 12:40:40 -0600
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
Just looking at the issues in hollie/misterhouse, and there’s an issue around using defined, specifically:
"With perl 5.26, perhaps others, need to remove 'defined' in Generic item as below, and probably in other modules. Not 100% sure this fix is correct but not using get_fp_location, and need generic item to work!
sub get_fp_location {
my ($self) = @_;
#RF removed defined, perl 5.26 (leap 15)
# if (! defined @{$$self{location}} ) { return }
if (! @{$$self{location}} ) { return }
return @{$$self{location}};
}”
I’m using perl 5, version 26, subversion 2 (v5.26.2), and fresh MH starts up for me fine. I recall some issues with defined and data structures in the past, but don’t recall the specific issue or fix. Anyone have any suggestions on what we should do about this?
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users