Cheers - L~R#!/usr/bin/perl -w use strict; my $static = mytest(); print $static->(); # Lot more code sub mytest { my $static = "Persistent"; return sub { $static }; }
In reply to Re: Static function variables without top declaration?
by Limbic~Region
in thread Static function variables without top declaration?
by davido
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |