in reply to Pulling out pairs

How do I skip over everything that doesn't have : between it.

Assuming you're passing filenames on the command line, try

while ( <> ) { next if ! /:/; ... }