Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: PIPE less

by ungalnanban (Pilgrim)
on Apr 16, 2010 at 10:15 UTC ( #835068=note: print w/ replies, xml ) Need Help??


in reply to PIPE less


using system function we can achieve this.
See the following example code.

use strict; use warnings; use Getopt::Std; . . . my %option=(); getopts("hwmyc:",\%option); . . . if(defined $option{h}) { system("less help_file"); #system("cat help_file | less"); #system("echo "this is help file"|less"); } . . .
--$ugum@r--


Comment on Re: PIPE less
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2015-05-29 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (587 votes), past polls