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 character. > > It is? Why? That colon looks pretty innocent to me,
It doesn't to Windows. Filenames in Windows cannot contain any of those: \ / : * ? " < > | > What is the whole program -- or rather, what is the shortest whole > program that shows the error -- and what is the full error? Those two lines above are the complete program. And the output is: cannot append: Invalid argument at - line 2. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>