in reply to Re: Creating a file by using perl
in thread Creating a file by using perl
My preferred method is to use heredoc style so there is only one print statement and your quotes can remain "natural"....
my $outfile = "skillfile.il"; open FH, ">> $outfile"; print FH <<EOF; libName = "cmos28shp" tech_lib = "cmos28shp" EOF close FH;
N.B. Note that using ">>" to open skillfile appends data to it, so running the program twice will duplicate the data in the file.
A Monk aims to give answers to those who have none, and to learn from those who know more.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Creating a file by using perl
by freekngeek (Acolyte) on Mar 28, 2013 at 12:31 UTC | |
by space_monk (Chaplain) on Mar 28, 2013 at 13:42 UTC |
In Section
Seekers of Perl Wisdom