in reply to Variable scope & subroutines

You are right, There are no differences between those two snippets.