@t = (localtime)[0..5]; $this_month = $t[4]+1; $previous_month = $t[4];