thanks a lot .

it works..


--perlpra


On 10/14/06, Dr.Ruud <[EMAIL PROTECTED]> wrote:

"perl pra" schreef:

> Subject: READ TEXT FILE AND SET EACH LINE AS ENV VARIABLE.

Don't shout.


> Is there any other way of using the values in text file as varibales
> in perl script.

Use a hash. See Uri Guttman's reply of yesterday in the "read from a
file and create a hash" thread on clpm.
news:[EMAIL PROTECTED]

|  use File::Slurp ;
|  my %conf = read_file( \*DATA ) =~ m/^(\w+)\s+(.+)$/gm ;

--
Affijn, Ruud

"Gewoon is een tijger."


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>



Reply via email to