perl strawberry assistance

gamblingman

VIP Member
Ok, so I'm kinda new to this.

I got perl, and I've attempted to create the hello world bit. But it wont work from the command line. Is there somewhere specific I need to save this to for CMD to "find it"? I'm on XP. I just got the perl strawberry (w/cpan).

I've been looking for the answer to this for hours, an its making me mad that I can't seem to resolve it. I cant seem to find anything which will cause the "script" to work. All I get from CMD input is "Cant find..(bla bla bla)....no such file or directory"

I know this is a noob question, but I'm doing my best to learn sql, apache, perl, etc...
 
Yeah I looked it over, and tried a few of the things there just to see. It didn't work with the strawberry version of perl. I'm having a terrible time of finding information for coding with this "program".

I spent most of last night working on this, and I can NOT understand what I'm doing wrong.
 
Just saw this post.. Sorry there is no programming section..

Do you have
'#!/usr/bin/perl'
as the first line to your per script?

Also when you name the file are you giving it a .pl file name?

Last, the command you type in the cmd window should be like this..
'perl C:\FolderName\MyPerlScript.pl'
Without the single quotes..

If you need any perl help let me know, I work with it a lot at work.

Hope it help, this language is amazing..
 
Back
Top