In this code section:
use TeamSite::WFsystem;
use TeamSite::Config;
my $NUMBER_OF_DAYS_AGO = 30;
my $time = localtime();
print "Starting to Remove worflows more then $NUMBER_OF_DAYS_AGO old \nStart time: $time\n---------------\n";
my $iwhome = TeamSite::Config::iwgethome();
my $wfs = new TeamSite::WFsystem();
my $num_days_ago = time() - (60 * 60 * 24 * $NUMBER_OF_DAYS_AGO);
my @tasks = map{@{$_->GetTasks()}[0];} @{$wfs->GetWorkflows()};
I'm getting the error:
Can't use an undefined value as an ARRAY reference
for this line:
my @tasks = map{@{$_->GetTasks()}[0];} @{$wfs->GetWorkflows()};
I assumed that $_ would be set to what I'm searching for...