From: Xavier Noria Date: 2012-04-24T22:28:16+09:00 Subject: Re: gem-packed script with DATA section does not work --047d7b15a62719df7704be6cbab2 Content-Type: text/plain; charset=UTF-8 On Tue, Apr 24, 2012 at 2:59 PM, Wybo Dekker wrote: > On 2012-04-24 11:08, Robert Klemme wrote: > > # single quotes are important! > > MY_DATA = <<'DAT' > > doc is here > > DAT > > > > And if you place it at the end of the script you have pretty much the > > same as with __END__ - plus, you can even define more documents that > > way. You could also do > > Maybe I don't see the clue, but putting the doc at the end of the script > (and thus necessarily using it before its definition) results in: > > uninitialized constant MY_DATA (NameError) > Did you receive my reply (I think it was the first one in the thread?) with the BEGIN blocks? Do you know what is a BEGIN block? --047d7b15a62719df7704be6cbab2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Tue, Apr 2= 4, 2012 at 2:59 PM, Wybo Dekker <wybo@xs4all.nl> wrote:
On 2012-04-24 11:08, Robert Klemme wrote:
> # single quotes are important!
> MY_DATA =3D <<'DAT'
> doc is here
> DAT
>
> And if you place it at the end of the script you have pretty much the<= br> > same as with __END__ - plus, you can even define more documents that > way. =C2=A0You could also do

Maybe I don't see the clue, but putting the doc at the end of the= script
(and thus necessarily using it before its definition) results in:

uninitialized constant MY_DATA (NameError)

<= div>Did you receive my reply (I think it was the first one in the thread?) = with the BEGIN blocks? Do you know what is a BEGIN block?
--047d7b15a62719df7704be6cbab2--