dbmathis has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Have a sort of trouble.
by linuxer (Curate) on Feb 02, 2010 at 20:44 UTC | |
by dbmathis (Scribe) on Feb 02, 2010 at 20:48 UTC |