in reply to Re: Re: Reducing repetitive codein thread Reducing repetitive code
if ( $realmonth >0 and $realmonth <=12 ) { print $monthname[$realmonth-1]; } else { warn "Invalid value for realmonth: $realmonth\n"; } [download]