Hi,

  I am wondering is there a way to get the absolute path for a given file in perl?

 

My requirement is as follows:

1)     I have a driver script like ~/testing/test_driver.pl.

2)     Inside the driver script I need to run all the scripts ~/testing/testsrc/*.pl.

3)     So, if I know the absolute path of the driver script I can go to the testsrc directory relative to that and I can do a ‘ls’ to get all the scripts.

4)     So that I can run the driver script irrespective of the directory. Ex: ../../../testing/test_driver.pl

 

 

Any kind of help is most welcome. J

 

Thanks in advance!!!

 

Regards

cvr/

 

_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to