Perl does not complain about missing semicolon
问题 I just found on my Ubuntu that Perl is not complaining about the semicolon at the end. Check the following code: #!/usr/bin/perl use warnings; use strict; my @array = (1, 2, 3, 4); foreach (@array) { print $_."\n" } print "no, this cant be true" Please notice that semicolon ";" is missing from the print statement. Still the code runs fine. OUTPUT: 1 2 3 4 no, this cant be true If I put semicolon after print, it still works. So this is confusing to me. Could you help me understand what am I