sub Populate_ProfilerList { opendir my $dh, $Profiler_Dir or die "$0: opendir: $!"; my @DirArray = grep {-d "$Profiler_Dir/$_" && ! /^\.{1,2}$/} readdir($dh); my $TableRowSize = @DirArray; my $TableColSize = 2; my %TableHeader = ( '0,0' => 'Profiler Name', '0,1' => 'Last Modified',); my $ProfilerList_Table = $Profiler_LabelFrame->new_table (-cols => $TableColSize,-rows => $TableRowSize,-cache => 1, -titlerows => 1, -colstretchmode => 'all', -takefocus => 1,-autoclear => 0, -font => 'calibri', -variable => \%TableHeader,-anchor=>"nw",-borderwidth =>0); ($TableVertical_Scroll = $Profiler_LabelFrame->new_ttk__scrollbar(-command => [$ProfilerList_Table, "yview"],-orient => "vertical"))->g_grid(-column=>0,-row=>0,-rowspan=>3,-sticky=>"nse"); $ProfilerList_Table->configure(-yscrollcommand => [$TableVertical_Scroll, "set"]); my $TableColNo = 1; foreach my $DirName (@DirArray) { my $RowNum = $TableColNo%2; my $epoch_timestamp = (stat("$Profiler_Dir/$DirName"))[9]; my $timestamp = localtime($epoch_timestamp) ." "; $ProfilerList_Table->set( "$TableColNo,0", $DirName); $ProfilerList_Table->set( "$TableColNo,1", $timestamp); $TableColNo++ ; } $ProfilerList_Table->configure( -state => 'disabled',-height=>7, ); $ProfilerList_Table->g_grid(-column=>0,-row=>0,-ipadx=>120,,-ipady=>5,-sticky=>"new",-columnspan=>1); }