Perlâs Camel and Special Variables Trying to eat him

In my previous post - downloading youtube videos with a Perl one-liner - I used Perl's special variable $_. This is just one of many Perl's special variables.

One day last year I decided to go through all the Perl's special variables carefully so I could become a better Perl programmer and make a cheat sheet which I could always keep on my desk and look things up when needed.

As I explained in the previous cheat-sheet post (awk's cheat sheet), the cheat sheets are for learning things better and not doing things blindly and looking the stuff each time up. Here is another example why cheat sheets are helpful - suppose you programmed for 5 hours and then sat back in your chair to relax for 10 minutes. You could relax by taking cheat sheet in your hands and just scan through it and remember a thing or two.

This cheat sheet contains all the perl's special variables, their description and examples where possible.

It can be nicely printed on one sheet of paper by having two pages per side. Two on one side and two on other. That's how I have printed it.

Available as usual in .doc and .pdf formats.

Download Perl's Special Variable Cheat-Sheet

Download link: perl's special variable cheat sheet (.pdf)
Downloaded: 104700 times

Microsoft Word 2000 format (.doc):
Download link: perl's special variable cheat sheet (.doc)
Downloaded: 5932 times

Are you interested in Perl programming language? Here are three excellent books on Perl from Amazon (recommended by me):


March 29, 2009, 07:19

Cheat sheets are great for software developers of all skill level. I use them often myself, mostly for syntax checking.

There is a link above to Perl Best Practices. I have no affiliation to this site or that book, but the information in Best Practice is second only to the Perl Cookbook.

My 2cents

kangu Permalink
November 23, 2009, 12:54

Thanks pkrumins it helps a lot.

November 23, 2013, 06:20

the designs are good of watches.

November 23, 2013, 06:23

this cheet sheet idea is not bad for students :)

November 26, 2013, 06:07

Hi Peteris,
Can I can share on my blog.Need your permission

February 06, 2014, 09:35

I really glad to see these designs well done work. amazing!

February 10, 2014, 06:53

Great article.

February 18, 2014, 07:01

You've shared a really good information Thumbs Up

April 05, 2014, 20:54

This is Perl predefined variable cheat sheet. It lists all the variables from `perldoc perlvar` with concise description and some example usages.

February 19, 2014, 07:42

Attractive post..

February 26, 2014, 12:35

Superb information on your site thanks

This is a wonderful website;)

March 01, 2014, 06:55

I really glad to see these designs well done work. amazing!

March 04, 2014, 08:36

Mind blowing creation. Great information...

Allenwood Permalink
March 10, 2014, 07:21

law clerk program is one of the most important paralegal programs we are offering owing to the importance of a law clerk in any legal department or at a lawyer’s office. The law clerk is the one that keep the legal office in order, maintain files in the best fashion as to be retrieved easily when needed and organize the legal proceeding efficiently so as to keep things in order. We are renowned for our very focused curriculum while devising the syllabus for professional degrees and hence for the law clerk program we have designed the program in such a way as to provide a real time exposure of practice as a law clerk.

Allenwood Permalink
March 18, 2014, 09:24

With pass4sure 70-687, your journey is full of opportunities. You opt for pass4sure HP2-H27 dumps or choose PDF Study Guides; your benefit is always enormous.

March 04, 2014, 08:36

I’ve read your things before and you are just too awesome

March 04, 2014, 10:37

Aweasome post! Keep up the good work.

March 12, 2014, 12:07

It's very informative post..

Leave a new comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the first letter of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.