my ($one, $two) = grep { $_ } split (/exp/, $line); #### my ($one, $two) = split (/exp/, $line, 2);