in reply to Extracting specific text info from the config file ouput

I would probably just split on space and keeps the bits I needed:
my ( undef, undef, $key_num, undef, $size, undef, $key ) = split /\s+/, $input;

There's probably something prettier, but I think that should work.

Phil