--- Pravesh Biyani <[EMAIL PROTECTED]> wrote: > i have a prog which should create a file according to the date > and name it "$date.log" and write something depending upon > other things in it! Here is the code.. which refuses to work > any clues.. ?
> $prefix_file = ` date '+%x' ` ; according to man, %x Current date representation. For example, 01/12/94. That means your filename probably has slashes in it, which the OS will interpret as a subdirectory path. add this line next and try it: > $prefix_file = ` date '+%x' ` ; $prefix_file =~ s/\W+/_/g; That should convert "01/12/94" to "01_12_94", which is ok as a filename. __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]