perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos" <ckas...@myway.com>
Subject printing to a file
Date Mon, 27 Jan 2003 15:19:08 GMT

Hi!


I am trying to create a config file from a template file and some data submited from a form.

When i try to write the values to the config file a get an error.

I am doing this:


open (tfile, "config_template.epl");
   @tfile = \<tfile>;
close (tfile);

  foreach(@tfile){
     s/databaseparams/$dbparams/
  }

  foreach(@tfile){
     s/generalparams/$gparams/
  }

open (cfile, ">pckg.epl");

print OUT cfile @tfile;  # Here is the problem, i have tryed many combination of this but
nothing works.

close (cfile);

What is the right way to write to a file?

Thank you in advance.

Carlos Kassab



_______________________________________________
<font size=2 face=verdana><b>No banners. No pop-ups. No kidding.</b>
Introducing My Way - <a href=http://www.myway.com target=_blank>http://www.myway.com</a></font>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message