From: Sundeep <[EMAIL PROTECTED]>
> I have a script to do several operations, based on the various options
> provided from command line.
> 
> For that I have created the help text (script.pl --help). The text is
> huge (exceeding 1 page) and I can not cut down on that.
> 
> So when users (one who uses my script) asks for help, it just scrolls
> off (expected).
> 
> Now I've been asked to display the text in the way man pages are
> displayed (scrollable up & down), or atleast in "script.pl --help |
> more" way... i.e., scrolling in one direction.
> 
> Is this possible using perl and how? Any sample code (or link) would
> help me do things quick

Erm... by running

        script.pl --help | more
?

Sorry, but I do think paging the output is non of your script's 
business. If they want the help paged they can page it using whatever 
paginator provided by the OS. Be it `more` or `less` or even 
something else.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to