Hi Monks,
Simple one. I am trying to sort these apache files, been away from perl for awhile and not doing something right.
for my $apache_file ( sort { $merge_structure{ apache_log }->{ $a +} cmp $merge_structure{ apache_log }->{ $b } } keys( %{ $merge_struct +ure{ apache_log }\ } ) ) { print "$apache_file\n"; }
This is not right, what am I doing wrong?:
/var/log/httpd/thermofisherhc/access_log /var/log/httpd/thermofisherhc/access_log.1 /var/log/httpd/thermofisherhc/access_log.3 /var/log/httpd/thermofisherhc/access_log.4 /var/log/httpd/thermofisherhc/access_log.2
In reply to Have a sort of trouble. by dbmathis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |