in reply to Re: Perl that moves.
in thread last character in string ?
Just thought that someone should mention that your code could be written as so:
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;.@l=split//,$date;pop @l;print join"",@l;
Anyway,
:-)
Yves
--
You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM)
|
|---|