PDA

View Full Version : OMG..UGH, i'm going crazy!


velious
03-08-2005, 06:34 AM
When ever i try and ask for help at #perlhelp on efnet on irc they tell me to go to the command prompt and run the code, because i was doing this:
$line = <>;
as a way to prevent the program from opening and closing so fast. and until i change that, they refuse to help me. .. BA$t@rD$!!

my PROBLEM is that i cant get to the right directory in ms-dos to run the programs in the first place. obviously
cd "c:\documents and settings\nathan\desktop" does not work, nore without the quotes and i tried many combinations.

at the cmd prompt c:\
just typing "perl myprogram.pl is not working

Even if its going to take money for someone to help me...WHATEVER, just please someone help me fix this.

andyede
03-08-2005, 09:54 AM
whats the error message you're getting? if you're computer doesn't know where to look for perl it will bring up an error regardless of wether you have directed it to the correct file

velious
03-08-2005, 03:16 PM
i type this at the c:\ prompt:
cd "C:\Documents and Settings\nathan\Desktop\perl"

it says parameter format not correct - "C:\documents

cfc
03-08-2005, 03:29 PM
try C:\DOCUME~1\nathan\Desktop\perl instead.


OMG..UGH, i'm going crazy!

Tends to happen with Perl :D

andyede
03-08-2005, 05:20 PM
yeah that should work. you might want to try saving the file in a directory closer to the drive root

velious
03-08-2005, 08:31 PM
no that did not work either

andyede
03-08-2005, 11:45 PM
have you tried saving your file in a directory next to your drive root. something like C:\test\myfile.pl that way youll get around the docume~1 problem. remember to put the 'cd' infront of it.

if that doesn't work put up what the error message says.

you do have the path environmental variable set up to run perl direct from the command line?

velious
03-09-2005, 12:47 AM
path environmental variable ?
well i dont know what that is, but i figured it out.