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
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 "
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
>
> $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
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