$dayz = (Sun,Mon,Tue,Wed,Thu,Fri,Sat)[(localtime)[6]]; print $dayz;