Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Keep It Simple, Stupid
 
PerlMonks  

Re: format with space

by amphiplex (Monk)
on Jul 12, 2002 at 09:50 UTC ( [id://181265]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 12: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 12: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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://181265]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.