What are common pitfalls or gotchas with format/write (legacy)?

Common pitfalls or gotchas when using Perl's `format` and `write` functions include issues such as improperly defined formats, unexpected output, and the confusion arising from the legacy nature of these functions, which can lead to maintainability challenges in modern Perl code.
Perl, format, write, common pitfalls, legacy code, formatting issues, maintainability challenges
# Example of Perl format usage format PLAYER = @|||||||||||||||||| @##### $name, $score . # Sample Perl code to show usage my $name = "Alice"; my $score = 1234; write; # This outputs the formatted data

Perl format write common pitfalls legacy code formatting issues maintainability challenges