I am getting following error while running the script even though i have used my before $buildTarget, Global symbol "$buidTarget" requires explicit package name at ./fileTest.pl line 10. Execution of ./fileTest.pl aborted due to compilation errors.
1 #!/grid/common/bin/perl 2 3 use strict; 4 use warnings; 5 6 7 8 9 my $buildTarget = "/home/abc/depot"; 10 if ( -s -x "$buildTarget/abc.txt" && -s -x "$buidTarget/def.txt" ) + { 11 print "test passed"; 12 } 13 else { 14 print "test failed"; 15 } 16
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |