in reply to Pulling out pairs

@pairs = grep(/^([^:]+):(.*)/, <>);
Or if you want to only find the lines that have only one colon...
@pairs = grep(/^([^:]+):([^:]+)$/, <>);
/me loves grep

- FrankG