in reply to Re: Sorting log files with IP addresses (duplicates)in thread Sorting log files with IP addresses (duplicates)
use Sort::Key::Natural 'natkeysort'; my @sorted = natkeysort { /src inside:(\d+\.\d+\.\d+\.\d+)/ ? $1 : '0.0.0.0' } @input; [download]