Hi sen, Try this,
#!/usr/local/bin/perl use strict; for(my $i=1; $i<=2; $i++) { my $a = 'test'.$i; eval "&$a"; } sub test1 { print 'test1'; } sub test2 { print 'test2'; }
Regards,
Velusamy R.
In reply to Re: How to sovle this, if i use strict i'm getting error.
by Samy_rio
in thread How to sovle this, if i use strict i'm getting error.
by sen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |