http://www.perlmonks.org?node_id=997210


in reply to Re: Problem printing return value from a subroutine
in thread Problem printing return value from a subroutine

Ok so I changed the last lines of the code
my (@qw)=induced(@{ $subgraphs[$d-1] }); print Dumper @qw; }
But still incorrect output
component 2 = e d $VAR1 = 'b'; $VAR2 = 'c'; $VAR3 = 'a'; component 1 = c a b b c a $VAR1 = 'b'; $VAR2 = 'c'; $VAR3 = 'a';