Yes, do it. However, a wise man once said "C programmers can write C in any language" (actually he said it about Fortran, but you get the idea). Consider if you are doing it because it is a good idea in C, or because it is a good idea in Perl.
are not the same thing, the answer to almost any "Can I" question in Perl is "YES". Should you? If it gets the job done, then yes. If it means you are happy, then yes also. But not just because it is like some other language.