G'day sandeepda,
I'm not sure that I've fully understood your question, particularly with respect to what's happening with versions X and Y. My apologies up-front if the following doesn't help.
ANT_HOME is an environment variable; Perl provides access to environment variables via the %ENV hash (see perlvar: General Variables); so the value you want should be $ENV{ANT_HOME}.
-- Ken
In reply to Re: How to find ant home/specific directory in Linux using perl
by kcott
in thread How to find ant home/specific directory in Linux using perl
by sandeepda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |