🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #7015

Re: Metalanguages in environments where code is data.

#7015
From: Anthony Heading
Date: Mon, 14 Nov 1994 14:17
20 lines
1932 bytes
In article <3a0egc$p4c@csnews.cs.Colorado.EDU> Tom Christiansen <tchrist@mox.perl.com> writes:
   :-> In comp.lang.perl, peter@nmti.com (Peter da Silva) writes:
   :Um, OK, except my example used a quoted brace-bracketed string with variable
   :interpolation deferred until a later point. Can you do deferred variable
   :interpolation in Perl?

   Sure; just use q{no interp on $var for now}, and then interpolate it later,
   probably with things like

       $string = q{no interp on $var for now};
       .....
       $newstring = eval qq{"$string"};

Umm - won't this do?

  $string = sub { "no interp on $var for now " }
  ....
  $newstring = &$string;

Anthony
Technical Details
Message-ID: <HEADING_ANTHONY.94Nov14141721@jpmorgan.com>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!rutgers!mcrcr6!cmcl2!jpmorgan.com!jpmorgan.com!archive.ny!heading_anthony
References: <id.IWEE1.A3H@nmti.com> <id.57ME1.GJ5@nmti.com> <39uaqf$3b2@csnews.cs.colorado.edu> <id.O6NE1.U_5@nmti.com> <3a0egc$p4c@csnews.cs.Colorado.EDU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f891f,9bda08f2f068881f
X-Google-Attributes: gidf891f,public
X-Google-Thread: 1025b4,9bda08f2f068881f
X-Google-Attributes: gid1025b4,public
X-Google-Thread: 103d24,9bda08f2f068881f
X-Google-Attributes: gid103d24,public
X-Google-Thread: 10259a,9bda08f2f068881f
X-Google-Attributes: gid10259a,public
X-Google-Thread: 10eb76,9bda08f2f068881f
X-Google-Attributes: gid10eb76,public
X-Google-ArrivalTime: 1994-11-14 12:55:30 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!rutgers!mcrcr6!cmcl2!jpmorgan.com!jpmorgan.com!archive.ny!heading_anthony
Newsgroups: comp.lang.misc,gnu.misc.discuss,comp.lang.scheme,comp.lang.tcl,comp.lang.perl
Subject: Re: Metalanguages in environments where code is data.
Message-ID: <HEADING_ANTHONY.94Nov14141721@jpmorgan.com>
From: heading_anthony@jpmorgan.com (Anthony Heading)
Date: 14 Nov 1994 14:17:21 GMT
References: <id.IWEE1.A3H@nmti.com> 
 <id.57ME1.GJ5@nmti.com> <39uaqf$3b2@csnews.cs.colorado.edu>
 <id.O6NE1.U_5@nmti.com> <3a0egc$p4c@csnews.cs.Colorado.EDU>
Organization: J.P. Morgan & Co
NNTP-Posting-Host: 198.75.152.100
In-reply-to: Tom Christiansen's message of 11 Nov 1994 18:51:53 GMT
Lines: 20