in reply to Variable Unusable?

probable error
push (@detected_sections, %section_int);
you probably meant \%section_int

another error here

$report->{'sections'} = @detected_sections;
an array in scalar context returns the number of elements in the array, you probably meant \@detected_sections, and you probably meant
foreach ( @{ $self->{'sections'} }) { ..use $_ here to do stuff.. }

Replies are listed 'Best First'.
Re^2: Variable Unusable?
by RobinV (Sexton) on Dec 29, 2009 at 09:28 UTC
    Thanks!
    That seemed to do the Trick!

    I do know what the \ does normally. But I don't see why I'll have to use References here? Also the @{} thing is new. I guess I'll spend NewYears reading the Camel book.

      You have to use references to the arrays and hashes because scalars can only contain scalars and references are scalars.