my ($new_retid) = $retid =~ /(^\d{4}_\d{3})$/; $new_retid ||= $retid.'_001'; [download]
In reply to Re: Variable assignment confusion by delirium in thread Variable assignment confusion by sweetblood