Perl lacks a great way to declare static variables.
is the closest you can come and that (once you think about it enough) makes my solution look downright tasty. (: - tye (but my friends call me "Tye")sub routine { my $static if 0; $static= 'value' if ! defined $static; # ... }
In reply to static variables (Re: Perl Turning a Blind Eye)
by tye
in thread Perl Turning a Blind Eye
by tadman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |