http://qs321.pair.com?node_id=300521


in reply to Mysql and printing result

Yes, there is a perl way to do it. In fact, I can think of at least two. However, there is also a non-perl WTDI that's a lot easier. perl verbose_output_thing.pl|less. (BTW, that should work on both windows and unix, though windows has strange corner cases where it won't work -- with .bat files, and associations, IIRC.)


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Replies are listed 'Best First'.
Re: Re: Mysql and printing result
by hotshot (Prior) on Oct 20, 2003 at 10:35 UTC
    Thanks but I need it from within perl, the code for printing the result is actually a function that is called from another perl script and not a script by itself.
    It's a part of a command line shell I wrote, and when a user enters the command lessOnDB the function is called and the output should be displayed. So I need a stict perl way for doing that.