in reply to Re: Archive::Zip: Passing members to subroutines
in thread Archive::Zip: Passing members to subroutines
and access it thus:push @appendArr,([$idArr[$c],$command,$srcArr[$c],$destArr[$c],$cmdArg +s]);
If you have time and inclination, could you expound on what is going on with the referencing and typing?foreach $fAppend (@appendArr) { print "is an array\n" if (ref($fAppend) eq "ARRAY"); print "fAppend[0]=@$fAppend[0]\n"; print "fAppend[2]=".(@$fAppend[2])->fileName()."\n"; print "fAppend[2]=".(@$fAppend[2])->contents()."\n"; ...
I presume the original ZIP "member" object is a hash reference.
The array was originally passed through as a scalar \@ then plopped into a string.
And as you pointed out, it lost its array-ness and hash-ness when I pushed it in a string "...,$member,..." into @appendArr. How does that happen?
If you have any reading recommendations on these intricacies, I'd be pleased to receive them!
Thanks again for your help!
We are up and running.
Rgds
Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Archive::Zip: Passing members to subroutines
by Corion (Patriarch) on Feb 01, 2018 at 15:38 UTC |