in reply to Re: Sorting log files with IP addresses (duplicates)
in thread Sorting log files with IP addresses (duplicates)

it gets quite easier (and faster) using Sort::Key::Natural:
use Sort::Key::Natural 'natkeysort'; my @sorted = natkeysort { /src inside:(\d+\.\d+\.\d+\.\d+)/ ? $1 : '0.0.0.0' } @input;