Well, DOS doesn't allow you to use Perl "one-liners" which are one line programs, so I can't think of a good example for you to do. Also, I just found out the hard way, that Windows 7 dropped the program "EDIT" Yeah, why would Windows users need a text editor to use in DOS anyways, right? Fucking Microsoft, what a bunch of idiots.
You will have to open notepad.
in notepad, type out:
print "Hello World!\n";
exit;
And hit "File" + "Save As" and then save it on your Desktop as "perl.txt"
Now, hit the WINDOWS button and the R button on your keyboard at the same time. This should open the Run dialog box, for any version of Windows. type out "CMD" then a command prompt will start. in that DOS window, type:
cd Desktop
Then
perl perl.txt
And viola! You have written your first Perl program that ran the print() function!
P.S.
If you were running Linux, all you would have to do is open Terminal and type:
perl -e 'print "Hello World!\n";'
to get the same result. Hehe, but Windows is much easier to use than Linux, right?