in reply to format with space

Hi !

I don't really understand what you are trying to do, but sprintf might prove useful:
$s = sprintf "%-8s%s", "val1", "name1"; print $s."\n";
---- kurt

Replies are listed 'Best First'.
Re: Re: format with space
by venki (Acolyte) on Jul 12, 2002 at 16:02 UTC
    Thanks guys! This is what i was trying to do. "sprintf" -- is the function best for my issue. Thank you perlmonks
Re: Re: format with space
by venki (Acolyte) on Jul 12, 2002 at 16:04 UTC
    Thanks guys! Yeap i do no that i am not able to explain properly. But you guys understood somewhat and helped me. Cool. This helps me to solve my problem. I do not know about this function sprintf. "sprintf" -- is the function best for my issue. Thank you perlmonks