Forum Webscript.Ru

Программирование => Perl => Тема начата: ustoun от 29 Октября 2003, 16:46:18

Название: ne poluchaetsy?????????????????????
Отправлено: 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!!!!!!!!!!!!!!!!!!!
Название: ne poluchaetsy?????????????????????
Отправлено: Chs от 29 Октября 2003, 17:09:49
[chs@chs Perl]$ perl -c test.pl
test.pl syntax OK

Эээээ...а в четвертой строке что? Я вижу только три.:)
Название: ne poluchaetsy?????????????????????
Отправлено: ustoun от 02 Ноября 2003, 11:41:56
4 stroki net a mezdy 2 and 3 ...  est probel
poetomu on pishet 4 stroki!
Название: ne poluchaetsy?????????????????????
Отправлено: NeoNox от 03 Ноября 2003, 11:03:03
Каким редактором скрипт пишеш?
Название: ne poluchaetsy?????????????????????
Отправлено: ustoun от 03 Ноября 2003, 15:08:40
notepad
Название: ne poluchaetsy?????????????????????
Отправлено: NeoNox от 03 Ноября 2003, 15:28:09
Вышли его на csc@ukr.net
Название: ne poluchaetsy?????????????????????
Отправлено: ustoun от 11 Ноября 2003, 23:33:24
спасибо Neo Nox , разобрался! На самом деле просто удалил тот файл в notepad написал точно такой же сохранил сново и все заработало, сечас думаю может в том файле где не увидел какой лишний символ хотя врят ли ... сейчас все работает начал двигаться дальше !
Спасибо!