in reply to Static function variables without top declaration?

davido,
OWTDI is to change to a re-useable closure:
#!/usr/bin/perl -w use strict; my $static = mytest(); print $static->(); # Lot more code sub mytest { my $static = "Persistent"; return sub { $static }; }
Cheers - L~R