Komentář: Nefunguje

Knahaka z IP 178.105.74.*** | 22.1.2011 10:17
$ perl test.pl
String found where operator expected at test.pl line 5, near "Print "${ x }a$b =
, $a*$b""
        (Do you need to predeclare Print?)
Bareword found where operator expected at test.pl line 5, near "// vytiskne"
        (Missing operator before vytiskne?)
syntax error at test.pl line 5, near "Print "${ x }a$b =, $a*$b""
syntax error at test.pl line 5, near "// vytiskne"
Execution of test.pl aborted due to compilation errors.

User@acer-6e40e97492 ~
$ cat test.pl
$a = 3;

$b = 3;

Print "${ x }a$b =, $a*$b"; // vytiskne: 3x3=9

User@acer-6e40e97492 ~
$ perl -version

This is perl, v5.10.1 (*) built for i686-cygwin-thread-multi-64int
(with 13 registered patches, see perl -V for more detail)

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.


Nový komentář

Téma:
Jméno:
Notif. e-mail *:
Komentář:
  [b] [obr]
Odpovězte prosím číslicemi: Součet čísel sedm a třináct