Hi monks,
The below code is working, if i use pragma 'use strict' i am getting error in my code..
Please help me Thanks in Advance..
Error : Can't use string ("test1") as a subroutine ref while "strict refs" in use at new.pl line 5
#!/usr/local/bin/perl for(my $i=1; $i<=2; $i++) { $a = 'test'.$i; &$a; } sub test1 { print 'test1'; } sub test2 { print 'test2'; }
In reply to How to sovle this, if i use strict i'm getting error. by sen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |