in reply to Pros/cons of my/our sought

In your second usage consider what might happen as your program becomes more complex and you or someone else adds more subroutines. Without carefully checking the entire codebase for existing our globals you may easily stomp on the global $num in another routine or block.