Added a very inefficient version of tail in Perl