Make few code snippets a valid Perl code