Welcome to the Monastery PerlMonks

### Re: Installing Perl on Windows XP

by inman (Curate)
 on Dec 19, 2007 at 11:57 UTC ( #657858=note: print w/replies, xml ) Need Help??

in reply to Installing Perl on Windows XP

Try running this from a command line rather than the editor. The diamond operator is shorthand for standard input which your editor may treat differently. Your script is fine although you should get into the habit of adding "use strict;" to enforce various checking routines.

Replies are listed 'Best First'.
Re^2: Installing Perl on Windows XP
by Ethen (Acolyte) on Dec 20, 2007 at 05:40 UTC
Ok...now I have written my script in notepad and saved it as "proj.pl". Now how to run it in command prompt? Please bear with me for my small queries as I am new to this.....but ur answers are really giving me a gud picture of it. Thanks Ethen
Welcome to the Monastery Ethen

"you should be able to run your Perl application by simply typing the filename on the command line"

You may find it useful when first learning to create a shortcut to the copy cmd.exe into the Perl bin.

Then all that is needed is to type the file name "proj.pl" at the command prompt.

For a normal ActiveState install you should be able to run your Perl application by simply typing the filename on the command line and pressing enter. If that doesn't do it for you then you could try:

c:\perl\bin\perl.exe proj.pl
[download]

which runs the Perl interpreter from the default location used by the ActiveState install.

Perl is environmentally friendly - it saves trees

Create A New User
Node Status?
node history
Node Type: note [id://657858]
help
Chatterbox?
 [choroba]: Also some Достое́вс кий [Discipulus]: mmh windows understand something like: cd c:\\\\path\\\\to weird.. [Discipulus]: even with odd number of \

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-05-24 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
My favorite model of computation is ...

Results (183 votes). Check out past polls.