in reply to Removing digits until you see | in a string
$str =~ s/^(\d+)// or die "missing digits in front of $str\n"; $data_hash{$1} = $str; [download]