Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: format with space

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


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://181265]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 20:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found