in reply to what is \ in perl

as with everything in perl, the backslash '\' has several different uses.

you're correct that when you precede an unquoted variable with a backslash, you get a reference to it.

# this will print a memory address like SCALAR(0x1e8feac) print \$test;

__________
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
- Terry Pratchett