What does the colon mean in the following Perl program?
MAIN: {
print "Hello\n";
}
What does the colon mean in the following Perl program?
MAIN: {
print "Hello\n";
}
It separates a label (MAIN
) from a block (the stuff between curly braces).
In Perl, a label is always suffixed with a colon, so you might argue the colon is part of the label.