Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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 www.mysql.com).. 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.
-Syn0

In reply to Re: char size by synapse0
in thread char size by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-03-28 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found