CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Writing data to a file at a specific columns and rows ?

 



cliff
newbie

Oct 23, 2002, 1:06 AM

Post #1 of 3 (477 views)
Writing data to a file at a specific columns and rows ? Can't Post

I write to a file some data with print:
print FILE "$user $salary $year \n";
i get something like this:

john 23232 23
simon 34343 34
bill gates 454454545 54

how to arange data to something like this:
john 23232 23
simon 34343 34
bill gates 454454545 54

Is print or printf able to write at specific row, column ?

Thanks a lot!



PS: Apreciate the third line!


kelkel
Novice

Oct 24, 2002, 2:32 AM

Post #2 of 3 (470 views)
Re: [cliff] Writing data to a file at a specific columns and rows ? [In reply to] Can't Post

you can use perl func : format


(This post was edited by kelkel on Oct 24, 2002, 2:33 AM)


cliff
newbie

Oct 24, 2002, 3:50 AM

Post #3 of 3 (466 views)
Re: [kelkel] Writing data to a file at a specific columns and rows ? [In reply to] Can't Post

Thanks a lot, that what i needed!

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives