develooper Front page | perl.perl6.language | Postings from February 2004

Re: Exegesis 7: Overflow Fields

Thread Previous | Thread Next
From:
Damian Conway
Date:
February 28, 2004 16:18
Subject:
Re: Exegesis 7: Overflow Fields
Message ID:
40412FD8.5060302@conway.org
Luke Palmer wrote:

>>Arn't there cases where the overflow field want to be bigger then the
>>first field?  Something the ends up looking like:
>>
>>LABEL: texttexttextexttexttext
>>texttextexttextetexttexttextte
>>xttexttexttexttexttexttextttex
>>
>>where LABEL is in one field and text... is in an oveflow block?
> 
> 
> Yeah.  I'd do that this way:
> 
>     form '{<<<}: {<<<<<<<<<<<<…}',
>           $label, $text,
>          '{…<<<<<<<<<<<<<<<<<<…}',
>           $text,
>          '{VVVVVVVVVVVVVVVVVVVV}';

Exactly.


And more often I think you'd actually want:

   LABEL: texttexttextexttexttext
          texttexttextexttexttext
   texttextexttextetexttexttextte
   xttexttexttexttexttexttextttex

which is even easier:

      form '{<<<}: {<<<<<<<<<<<<<}',
            $label, $text,
           '       {VVVVVVVVVVVVV}',
           '{VVVVVVVVVVVVVVVVVVVV}';


Damian

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About