Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Perl ARRAY() resultby bliako (Monsignor) |
on Jan 13, 2019 at 21:58 UTC ( [id://1228497]=note: print w/replies, xml ) | Need Help?? |
if you want to print the contents of an array just do:
in the code you posted try replacing with print join(", ", @{[ @$included, $nextValue ]})."\n" Edit:btw, your code does not return anything in @results. Instead of printing inside your sub, try pushing each new result to the @results array by replacing said print statement with push(@results, [ @$included, $nextValue ]). Then at the end of your code (after Solve() returns) do print join(",", @$_)."\n" foreach @results I was wondering what @$_ in print "@$_\n", [ @$included, $nextValue ] was all about...
In Section
Seekers of Perl Wisdom
|
|