in reply to what is sub {1;}

FYI, Anonymous subroutines can be useful. Some examples are dispatch tables and callbacks.