Perl basic helpers