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:

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


Reply via email to