If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Perl and the DBI > Simple question about PRINTF

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-02-06, 15:05
Serg Serg is offline
Registered User
 
Join Date: Feb 2004
Posts: 52
Simple question about PRINTF

Hi all.

I just learned enough Perl to solve some small problems
and I am now stuck with something very simple.
Could someone shed some light on the following problem ?

I have a matrix with an unknown number of
real numbers (I mean, the total number is a variable).
How do I plot this matrix using 3 numbers per line ?

Example :

matrix : 2.1
10.5
3.0
4.63
-1.1
4.3
3.3

Result : 2.1 10.5 3.0
4.63 -1.1 4.3
3.3

I was going to use xargs inside my Perl code but it did not
work either.

Thanks a lot,

S.
Reply With Quote
  #2 (permalink)  
Old 06-02-06, 15:23
Serg Serg is offline
Registered User
 
Join Date: Feb 2004
Posts: 52
Talking Solved

Ok, never mind. One extra sip of java and the problem is gone.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On