in reply to How to sovle this, if i use strict i'm getting error.
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.
eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to sovle this, if i use strict i'm getting error.
by blazar (Canon) on Dec 06, 2005 at 12:02 UTC |
In Section
Seekers of Perl Wisdom