in reply to Hash reference as a parameter
At any rate, if you modify the call by removing the brackets like so it will work:
StartCapture( twigs => {filter => $filterTwig, capture => $captur +eTwig}, hashes => {filter => %filterHash, capture => %captur +eHash}, files => {filter => 'filter.txt', capture => 'captur +e.txt'}, results => 'c:/temp.txt' );
Result:
perl www.pl results => c:/temp.txt C:\Temp>
It is important to use Data::Dumper or the like to analyze things that are being passed when you are doing things like this. For instance, how do you know you want the entire %captureDefaultHash, rather than just a bunch of elements in it?
Celebrate Intellectual Diversity
|
|---|