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

Re: char size

by synapse0 (Pilgrim)
on Sep 07, 2001 at 12:13 UTC ( #110851=note: print w/ replies, xml ) Need Help??

in reply to char size

Not sure if I understand you, to me it sounds like you're running a query and you get back soo much data that it all doesn't fit on your dos screen.. So to compensate, you drop the char size to try and fit more in.. is that right??
Well, if so, uhmm.. is there any perl involved at all? or are you just running the query from within mysql? If you're dealing with the latter, then you're in the wrong place, try a mysql forum somewhere (or the docs at If you're using Perl, then you can do something like:

$x = 1; while(@data = $sth->fetchrow_array) { print join(' ', @data) . "\n"; unless ($x % $max_lines) { print "\nPress a key to continue.\n"; <STDIN>; } $x++; }
The main thing there is the % (modulous operator) which will return the remainder of $x divided by $maxlines, which is true everytime $x has been incremented $maxlines times, so we get a pause in output as the script waits for you to press enter, allowing you to review what's been printed so far.

Comment on Re: char size
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2015-11-26 00:43 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (695 votes), past polls