in reply to or with a block

just thought id point out another obvious solution...
opendir(DIR, "$path") or warn $!; yell(); sub yell() { #other code here... }