note
injunjoel
Just a thought, though probably not the most secure...
<c>
#!/usr/bin/perl -w
use strict;
my @list_o_subs = ('one','two','three','one','two','one','three','two');
{
no strict 'refs';
for(@list_o_subs){
&{$_};
}
}
sub one
{
print "called sub 'one'\n";
}
sub two
{
print "called sub 'two'\n";
}
sub three
{
print "called sub 'three'\n";
}
</c>
Outputs
<c>
called sub 'one'
called sub 'two'
called sub 'three'
called sub 'one'
called sub 'two'
called sub 'one'
called sub 'three'
called sub 'two'
</c>
<br />
<strong>Update!</strong><br />
I really should read more thoroughly before I post... This is basically what [Bloodnok] suggested.
<br /><br />
-InjunJoel<br />
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-277600">
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo
</div></div>
705876
705876