Hi,
I thought that the code snip below should work but I am not getting
my text into the the file. The file is created but it's empty.
Ideally I want to create the log file outside any sub routines so
that $log to be available to any sub I have created and hence not
scoped to any one sub routi
Beginner wrote:
I thought that the code snip below should work but I am not getting
my text into the the file. The file is created but it's empty.
Ideally I want to create the log file outside any sub routines so
that $log to be available to any sub I have created and hence not
scoped to an
On 10/2/07, Beginner <[EMAIL PROTECTED]> wrote:
> Ideally I want to create the log file outside any sub routines so
> that $log to be available to any sub I have created and hence not
> scoped to any one sub routine.
In other words, $log needs to be a global variable, so that it's
available every
On 2 Oct 2007 at 15:23, Rob Dixon wrote:
> Hi Dermot. You're a little confused, but you're not far out!
Your being kind.
> >
> > $| = 1;
I wasn't aware this only applied to STDOUT. My log messages all
appear at once, when the script has exited and I was hoping for some
'realtime' messages.
i am using cgi session to write a cart .
here is the partial code.
the problem is for loop will push mutiply times of same value if
itemID is not exit in original array.
what i want isonly push one times of value if itemid is a new
value
could any one here give some clue or show me the co
> -Original Message-
> From: Beginner [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 02, 2007 10:39 AM
> To: perl beginners
> Subject: Re: Variable scope
>
> On 2 Oct 2007 at 15:23, Rob Dixon wrote:
>
> > >
> > > $| = 1;
>
> I wasn't aware this only applied to STDOUT. My log messa
On 10/2/07, Bob McConnell <[EMAIL PROTECTED]> wrote:
snip
> > > > $| = 1;
> >
> > I wasn't aware this only applied to STDOUT. My log messages all
> > appear at once, when the script has exited and I was hoping for some
> > 'realtime' messages.
>
> It used to be possible to turn off buffering on sp
On 10/2/07, Beginner <[EMAIL PROTECTED]> wrote:
snip
> > > $| = 1;
>
> I wasn't aware this only applied to STDOUT. My log messages all
> appear at once, when the script has exited and I was hoping for some
> 'realtime' messages.
snip
It applies to stdout because it is the currently selected fileh
Gurus;
Sorry if this is not the proper forum.
I've successfully written a Perl script to create a specific XML file.
The problem comes when I attempt to run the script again and append XML
entries onto the XML file.
Using XML::Writer, I am unable to perform a proper append. (The append
IO i
On 10/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> i am using cgi session to write a cart .
> here is the partial code.
If you only send part of your code, ideally you should send a part
which can run on its own. That is, make a small stand-alone program
which shows the problem you're hav
You can't really strictly "append" to a well-formed XML without breaking
the syntax. You need the properly closed top level element at the very
least, in addition to whatever nesting may be going on. An ugly
solution would be to chop off the end of whatever file you're dealing
with and then recre
On 10/2/07, Steven Sim <[EMAIL PROTECTED]> wrote:
> I've successfully written a Perl script to create a specific XML file.
>
> The problem comes when I attempt to run the script again and append XML
> entries onto the XML file.
>
> Using XML::Writer, I am unable to perform a proper append. (The ap
12 matches
Mail list logo