develooper Front page | perl.beginners | Postings from January 2002

Inline file edit

Thread Next
From:
Yacketta, Ronald
Date:
January 8, 2002 06:14
Subject:
Inline file edit
Message ID:
544CF8DBB77FD411B17400508BAEBD1104E81FC8@USA0875MS1
Folks,

looking for a clean way to change a value in a file on the fly before it is
processed (ran).
I have a perl script that kicks off several resource scripts (.scr) that are
NOT a valid shell script and can not be ran from the command line alone. I
need a way to modify these .scr scripts on the fly to change 2 values in the
script based on user supplied input to the .pl script.

IE:

user enters a SID of _QAP2, but all the .scr files have a SID of _VALUTEST 
I need to be able to change the SID in the .scr on the fly before it is ran.

Regards,
Ron

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About