use Sort::Key::Natural 'natkeysort'; my @sorted = natkeysort { /src inside:(\d+\.\d+\.\d+\.\d+)/ ? $1 : '0.0.0.0' } @input;
In reply to Re^2: Sorting log files with IP addresses (duplicates)
by salva
in thread Sorting log files with IP addresses (duplicates)
by Secode
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |