Forum Webscript.Ru
Программирование => Perl => Тема начата: ustoun от 29 Октября 2003, 16:46:18
-
this is my first program Which I want to run I coped it from my study book like it was print there....... nepoluchaetcy!!!!!!!!
#!c:\\perl\\bin\\perl.exe
# perl first program
print "welcom!\\n";
polzuus ActivePerl on y meny legit v c:\\perl\\bin\\perl.exe potomu pervyu ctroku pishu #!c:\\perl\\bin\\perl.exe
y meny WINDOWS XP
pishu tekst v notepad
zapuskau v "cmd.exe" pishu perl and filename
vsegda poluchau
C:\\Documents and Settings\\CEUstoun>perl fig.pl
Bareword found where operator expected at fig.pl line
(Missing operator before r?)
Bareword found where operator expected at fig.pl line
(Missing operator before i?)
Bareword found where operator expected at fig.pl line
(Missing operator before n?)
Bareword found where operator expected at fig.pl line
(Missing operator before t?)
String found where operator expected at fig.pl line 4
(Missing operator before ?)
syntax error at fig.pl line 4, near ""
Execution of fig.pl aborted due to compilation errors
C:\\Documents and Settings\\CEUstoun>perl fig.pl ( suda soxranil file fig.pl kotorii xochu zapustit )
Zaranie spasibo ogromnoe!!!!!!!!!!!!!!!!!!!
-
[chs@chs Perl]$ perl -c test.pl
test.pl syntax OK
Эээээ...а в четвертой строке что? Я вижу только три.:)
-
4 stroki net a mezdy 2 and 3 ... est probel
poetomu on pishet 4 stroki!
-
Каким редактором скрипт пишеш?
-
notepad
-
Вышли его на csc@ukr.net
-
спасибо Neo Nox , разобрался! На самом деле просто удалил тот файл в notepad написал точно такой же сохранил сново и все заработало, сечас думаю может в том файле где не увидел какой лишний символ хотя врят ли ... сейчас все работает начал двигаться дальше !
Спасибо!