@l=split//,$date;pop @l;print join"",@l;
The two points I want to make are first, if you are trying to make your code as small as possible then often the parentheses can be left out (as well as trailing semicolons in a scope). Second that the foreach(@l){$r.=$_} is better written as $r=join"",@l;.
Anyway,
:-)
Yves
--
You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM) |