Perl's paragraph mode

Harry George hgg9140 at seanet.com
Sat Jul 8 17:58:56 EDT 2000


If you use pyperl:
p=pyperl.Pyperl()
p.INPUT_RECORD_SEPARATOR=''
myfile=p.open("< $filename")
lines=myfile.readlines()

Opinderjit Singh Bhella <bhella at ce.mediaone.net> writes:

> How can I do this Perl paragraph mode in Python?
>     $/ = '';  # paragraph mode
> 
> Thanks.
> 

-- 
Harry George
hgg9140 at seanet.com



More information about the Python-list mailing list