P
Peng Yu
It says in the following webpage http://www.comp.leeds.ac.uk/Perl/basic.html
and many other tutorials that every perl statement has to end with
';'. But it seems not to be the case (see the example below). I feel
that ';' in the last statement can be omitted. Could somebody point me
what the rules are?
$ ./semicolon.pl
Hello world!
pengy@morgan:~/test/perl$ cat semicolon.pl
#!/usr/bin/perl
print "Hello world!\n"
and many other tutorials that every perl statement has to end with
';'. But it seems not to be the case (see the example below). I feel
that ';' in the last statement can be omitted. Could somebody point me
what the rules are?
$ ./semicolon.pl
Hello world!
pengy@morgan:~/test/perl$ cat semicolon.pl
#!/usr/bin/perl
print "Hello world!\n"