Brock Wilcox writes:
> I'm afraid a bit more context is needed to identify the problem. Could you
> post your entire bit of code into a gist or pastebin or something for us
> to
> see?
I'll do better than that. This is a script which is
stripped of everything but the problem code. It is 20 lines long
and here it is.
#!/usr/bin/perl -w
use strict;
#Declare main variables.
#main locals
my @tasks;
my $task;
my $report_static;
$report_static = sub {
print "$task\n";
};
#MAIN_CODE START
$tasks[0] = "red";
$tasks[1] = "blue";
$tasks[2] = "green";
foreach $task (@tasks) {
&$report_static;
}
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/