S
Slickuser
I have a filename (file.txt)
file.txt contains:
Sample4.1.2009_US
Sample4.2.2009_ASIA
I can parse this file in Perl fine. Now I want this value to be
available to use in a batch script.
I try using "set" but the info get clear once I exit perl script.
perl_script.pl
open file.txt
parse info
use system to execute command ("set xxyz_US=Sample4.1.2009_US")
("set xxyz_ASIA=Sample4.2.2009_ASIA")
batch.bat
call perl perl_script.pl
@echo on
@echo %xxyz_US%
@echo %xxyz_ASIA%
call perl script2. %xxyz_US% %xxyz_ASIA%
This %___% will be use in my other Perl scripts as well.
All I need to do is edit file.txt and the batch script will update the
value on it own through a schedule task.
What's a good solution to approach this?
file.txt contains:
Sample4.1.2009_US
Sample4.2.2009_ASIA
I can parse this file in Perl fine. Now I want this value to be
available to use in a batch script.
I try using "set" but the info get clear once I exit perl script.
perl_script.pl
open file.txt
parse info
use system to execute command ("set xxyz_US=Sample4.1.2009_US")
("set xxyz_ASIA=Sample4.2.2009_ASIA")
batch.bat
call perl perl_script.pl
@echo on
@echo %xxyz_US%
@echo %xxyz_ASIA%
call perl script2. %xxyz_US% %xxyz_ASIA%
This %___% will be use in my other Perl scripts as well.
All I need to do is edit file.txt and the batch script will update the
value on it own through a schedule task.
What's a good solution to approach this?