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