$string =~ /^level[123]$/ ? "$string stage" : 'Edit' [download]
In reply to Re: perl syntax help for ternary operator by choroba in thread perl syntax help for ternary operator by ghosh123