HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- print multiple lines that act as more in Perl
Operating System - HP-UX
1837613
Members
3260
Online
110117
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 08:41 AM
07-30-2004 08:41 AM
I have created a multi variable, that displays alot of information, when I print, the top part scrolls off the screen as if you do a cat on a long file.
How can I make a this print $multi, "/n"; Act like the more command in unix. Even display "hit enter to continue" then carry on with the rest for the info and the script.
my $multi =" lots of info...";
print $multi, "/n";
How can I make a this print $multi, "/n"; Act like the more command in unix. Even display "hit enter to continue" then carry on with the rest for the info and the script.
my $multi =" lots of info...";
print $multi, "/n";
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2004 08:23 PM
07-30-2004 08:23 PM
Re: print multiple lines that act as more in Perl
of course that "/n" should be "\n"
For more/less functionality, you could also use modules
Simple:
http://search.cpan.org/~jaw/Term-Pager-1.00/
use Term::Pager;
my $t = Term::Pager->new (rows => 25, cols => 80);
$t->add_text ($text);
$t->more ();
or
http://search.cpan.org/author/JPIERCE/IO-Pager-0.05/lib/IO/
use IO::Pager;
{ local $STDOUT = new IO::Pager *STDOUT;
print $multi;
}
Graphical in Tk:
http://search.cpan.org/author/SREZIC/Tk-Pod-0.9927/
For more/less functionality, you could also use modules
Simple:
http://search.cpan.org/~jaw/Term-Pager-1.00/
use Term::Pager;
my $t = Term::Pager->new (rows => 25, cols => 80);
$t->add_text ($text);
$t->more ();
or
http://search.cpan.org/author/JPIERCE/IO-Pager-0.05/lib/IO/
use IO::Pager;
{ local $STDOUT = new IO::Pager *STDOUT;
print $multi;
}
Graphical in Tk:
http://search.cpan.org/author/SREZIC/Tk-Pod-0.9927/
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2005 01:11 AM
02-23-2005 01:11 AM
Re: print multiple lines that act as more in Perl
Thanks
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP