Re: Time Skip

2004-09-16 Thread John W. Krahn
Anish Kumar K. wrote: $filename = "data_logfile" .(localtime). ".txt"; open(LOG, ">>$filename") || die "cannot append: $!"; when I compile the file is says "Invalid argument". This is because of the colon character. Suppose after one activity I want to update the log activities in one file say da

Re: Time Skip

2004-09-16 Thread Chris Devers
On Thu, 16 Sep 2004, Jenda Krynicky wrote: > From: Chris Devers <[EMAIL PROTECTED]> > > On Thu, 16 Sep 2004, Anish Kumar K. wrote: > > > $filename = "data_logfile" .(localtime). ".txt"; > > > open(LOG, ">>$filename") || die "cannot append: $!"; > > > > > > > > > when I compile the file it says "

Re: Time Skip

2004-09-16 Thread Jenda Krynicky
From: Chris Devers <[EMAIL PROTECTED]> > On Thu, 16 Sep 2004, Anish Kumar K. wrote: > > $filename = "data_logfile" .(localtime). ".txt"; > > open(LOG, ">>$filename") || die "cannot append: $!"; > > > > > > when I compile the file it says "Invalid argument". This is because > > of the colon charac

RE: Time Skip

2004-09-16 Thread Jim
> > $filename = "data_logfile" .(localtime). ".txt"; open(LOG, > ">>$filename") || die "cannot append: $!"; > > > when I compile the file is says "Invalid argument". This is > because of the colon character. > You have answered your own question :). You can't use the : char in the creatio

Re: Time Skip

2004-09-16 Thread Chris Devers
On Thu, 16 Sep 2004, Anish Kumar K. wrote: > $filename = "data_logfile" .(localtime). ".txt"; > open(LOG, ">>$filename") || die "cannot append: $!"; > > > when I compile the file it says "Invalid argument". This is because of > the colon character. It is? Why? That colon looks pretty innocent