matze77 has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, if you could be so kind to share your wisdom:
It works so far but i know there is a "Label-Function" but i dont know how to use this with correct syntax.#!/usr/bin/perl use 5.010; use strict; use warnings; { open(MYFILE, ">>c:/temp/test.txt")or die "Can't open file: $!\n"; ; #open for write, append } printf MYFILE "\n"; printf MYFILE "[ARTEC]\n"; printf MYFILE 'IniFile=f:\vaa\basis\vaa01.ini'; printf MYFILE "\n"; close(MYFILE);
Is not working how do i escape the path?print MYFILE <<"Label"; f:\vaa\basic Label
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Better way to print text appended to a file "syntax problem"?
by keszler (Priest) on Nov 23, 2009 at 15:31 UTC | |
|
Re: Better way to print text appended to a file "syntax problem"?
by VinsWorldcom (Prior) on Nov 23, 2009 at 15:23 UTC | |
|
Re: Better way to print text appended to a file "syntax problem"?
by cdarke (Prior) on Nov 23, 2009 at 16:29 UTC | |
|
Re: Better way to print text appended to a file "syntax problem"?
by kennethk (Abbot) on Nov 23, 2009 at 15:38 UTC | |
|
Re: Better way to print text appended to a file "syntax problem"?
by JadeNB (Chaplain) on Nov 23, 2009 at 16:38 UTC | |
|
Re: Better way to print text appended to a file "syntax problem"?
by planetscape (Chancellor) on Nov 24, 2009 at 02:54 UTC |