So-- are you trying to run Perl commands on the command line? That may just be a misunderstanding of how you use Perl? Try this:
Create a file using Windows Notepad:
C:\temp\test.pl
Now, bring up the command prompt, by clicking on the "Perl (command line)" link under Strawberry Perl, or by using Start -> Run ... -> cmd, or Start -> Accessories -> Command Prompt. Or whatever your preference. Then type:
Now, your test code should run.
Technically, where Strawberry Perl installs a link that says "Perl (command line)", I think all it's doing is getting you to the command prompt. You're not actually in a Perl line interpreter or anything, although I can see that it might be confusing that way. All it does is get you to the command line so that you can run Perl programs that you've written elsewhere. The only thing it MIGHT do (it seems like it doesn't need to, but I'm not sure), is set your %PATH% to include Perl, so that you don't have to bother typing out the full directory path for Perl every time (that would be annoying).
Now, what would be cool is if you could run your Perl programs without having to type "perl" before them, just like in UNIX/Linux. But I'm not sure how to do that, really. You could update the registry so that double-clicking them invoked Perl, but I'm not sure you could do the same thing on the command line? That'd be occasionally handy, if so.
DaveE