in reply to Re: use strict and subroutines
in thread use strict and subroutines

Actually, your first version wouldn't work under strict. The first occurrence of $myname has not yet been declared. Just a point of order... The second is a good example.