On 10/9/09 Fri Oct 9, 2009 7:43 AM, "Harry Putnam"
scribbled:
> I'm thinking of splitting on something like ' +' (+) since
> no regular output will have 2 spc or more between connected
> words I mean words that belong in a group.
I would use the construct /\s{2,}/ for "two or more spaces"
Jim Gibson writes:
> You might try splitting the line on whitespace, extracting the first two and
> last two elements, then joining the remainder back with a space. You can
> then test the length of the middle string for excessive length and print or
> trim accordingly. This will concatenate any
On 10/8/09 Thu Oct 8, 2009 3:56 PM, "Harry Putnam"
scribbled:
> Shlomi Fish writes:
>
>> Hi Harry!
>
> [...]
>
>>>
>>> I want to catch those long lines and format them like one might format
>>> a news/mail message... wrapped at column 72 or so but also indented
>>> whatever spcs looks good
Shlomi Fish writes:
> Hi Harry!
[...]
>>
>> I want to catch those long lines and format them like one might format
>> a news/mail message... wrapped at column 72 or so but also indented
>> whatever spcs looks good.
>>
>> I looked at perldoc -f format but that says its about pictures and
>> do
Hi Harry!
On Thursday 08 Oct 2009 21:29:04 Harry Putnam wrote:
> I'm just looking for a push to get started... I do have some perl
> skills (pretty lowlevel to be sure) so can do basic formating with
> printf and such.
>
> But here... I expect my input to be pretty uniform actually already
> form