The right answer is not to use tabs. But ok, just for the sake of knowing how it's done…
CPerl uses the default Emacs settings for tab usage, and the Emacs default is to use tabs. So you're already getting tabs. Note that the default amount of indentation is 2 spaces, and the default tab width is 8 columns, so you need at least 4 levels of indentation to see a tab.
If you want to change the tab width to 2 columns, set the
tab-width variable, but note that your files will look strange to other people with a different tab width. If you want to change the amount of indentation per level to 8 columns, set
If you exchange files with other people, it's best to put these settings in a file variable (and not to use tabs, of course). For example:
# Local Variables:
# tab-width: 8
# cperl-indent-level: 8
I think the equivalent vi modeline is
# vi: ts=8 sw=8:.