2009/7/8 Alexander Koenig <alexander.koe...@mpi.nl> > Hi again, > > You wrote on 07/08/2009 10:14 AM: > > > But still a bit curios about this > > if I do > > $middle=`date +%F`; > > I get result ( the new line prob), > > > > New File name : log_2009-07-07 > > .gz > > > > It there any way to do it using this (Using date command). > > That's because the date output includes a newline. Try chomping it > before you use it: >
Thanks chomping worked :) > > > $middle=`date +%F`; > chomp ($middle); > print $middle; > > => no linebreak anymore > > hth > Alex > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > -- Regards, मेघानंद नं. आचरेकर Meghanand N. Acharekar " A proud Linux User " Reg Linux User #397975 ------------------------------------------ I was born free! No Gates and Windows can restrict my Freedom !!!