Mumia W. schreef:
> Ken:
>> what's correct regular expression on extracting only NAME and
>> DESCRIPTION section from pod text file?
>> I have tried this, but failed!
>>
>> perl -e '$c=`pod2text /data/WebGUI/lib/WebGUI/User.pm`;$c =~
>> s/(NAME.*)SYNOPSIS/$1/;print $c'
>
> foreach $_ (`pod2text /usr/bin/pod2text `) {
> if (/^NAME|SYN/../^$/) { print }
> }
Alternative:
/pattern/ and print for `command` ;
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>