in reply to Why this error instead of doing simple break
You can often find information on error messages with perldoc perldiag.
In this case, also perldoc -f break and perldoc -f given.