Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
open (MAN, "/usr/bin/man ssh |"); while (<MAN>) { s/^\s+//g; push(@ml,$_); } foreach $line (@ml) { $line =~s/\n$//; $line =~s/^\n//; $line =~s/^\s+//; } for ($x=0; $x<=45; $x++) { if ($ml[$x]=~/NAME/) { while($ml[$x] !~/SYNOPSIS/) { $nl .= $ml[$x] } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: script debug
by VSarkiss (Monsignor) on Aug 19, 2001 at 00:15 UTC | |
by faure (Sexton) on Aug 19, 2001 at 02:01 UTC | |
|
Re: script debug
by dws (Chancellor) on Aug 19, 2001 at 00:06 UTC | |
|
Re: script debug
by jryan (Vicar) on Aug 19, 2001 at 00:41 UTC | |
by tilly (Archbishop) on Aug 19, 2001 at 07:14 UTC | |
by jryan (Vicar) on Aug 19, 2001 at 21:45 UTC | |
by tilly (Archbishop) on Aug 19, 2001 at 22:19 UTC | |
by jryan (Vicar) on Aug 19, 2001 at 00:42 UTC | |
|
Re: script debug
by George_Sherston (Vicar) on Aug 19, 2001 at 00:08 UTC |