in reply to Re: parsing multi-line output from a cli command
in thread parsing multi-line output from a cli command
Re this bit:
elsif(s/^\s+//) { if(defined $ref->{summary}) { $ref->{summary} .= "\n$_"; } else { $ref->{summary} = $_; }
You can reduce it to:
elsif(s/^\s+//) { $ref->{summary} .= "\n$_"; }
dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: parsing multi-line output from a cli command
by bart (Canon) on Jan 23, 2004 at 20:31 UTC | |
by Not_a_Number (Prior) on Jan 23, 2004 at 21:13 UTC |