Instead of having change the directory always for this c:\perl\bin\perl program.pl, how do i write a search function in perl to do that search itself and run..
if($num == 1)
{
# change the path here
# system("perl extract.pl"
system("c:\\perl\\bin\\perl program1.pl"
}
elsif ($num == 2)
{
# change the path here
system("c:\\perl\\bin\\perl program2.pl"
}
Help me out..
if($num == 1)
{
# change the path here
# system("perl extract.pl"
system("c:\\perl\\bin\\perl program1.pl"
}
elsif ($num == 2)
{
# change the path here
system("c:\\perl\\bin\\perl program2.pl"
}
Help me out..