in reply to Archive::Zip: Passing members to subroutines
Somewhere in your code, you converted the reference to 0x3d99cdc to a string, and now you're trying to call methods on this string. That doesn't work.
I think this happens here:
push @appendArr,("$idArr[$c],$command,$srcArr[$c],$destArr[$c],$cmdArg +s");
If instead of converting all those nice references to a string you use an array, you keep the references as references:
push @appendArr,[$idArr[$c],$command,$srcArr[$c],$destArr[$c],$cmdArgs +];
Later, don't split that string, but use it as array immediately:
# (my @appendMemberArr) = split(/,/,$fAppend); (my @appendMemberArr) = @$fAppend;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Archive::Zip: Passing members to subroutines
by Anonymous Monk on Feb 01, 2018 at 15:34 UTC | |
by Corion (Patriarch) on Feb 01, 2018 at 15:38 UTC |