Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.perl.misc > #4805
| From | tmcd@panix.com (Tim McDaniel) |
|---|---|
| Newsgroups | comp.lang.perl.misc |
| Subject | Re: Embedding code in qq{}? |
| Date | 2012-03-19 06:42 +0000 |
| Organization | Tim McDaniel's at Panix |
| Message-ID | <jk6kg1$l5k$1@reader1.panix.com> (permalink) |
| References | <87limyk471.fsf@Gmail.com> <86fwd5wl9d.fsf@red.stonehenge.com> <jk657m$383$1@reader1.panix.com> <878vixtef8.fsf@stemsystems.com> |
In article <878vixtef8.fsf@stemsystems.com>,
Uri Guttman <uri@stemsystems.com> wrote:
>>>>>> "TM" == Tim McDaniel <tmcd@panix.com> writes:
>
> TM> In article <86fwd5wl9d.fsf@red.stonehenge.com>,
> TM> Randal L. Schwartz <merlyn@stonehenge.com> wrote:
> >>>>>>> "Tim" == Tim McDaniel <tmcd@panix.com> writes:
> >>
> Tim> print "scalar: ", ${tester()}, "\n";
> >>
> >> I'm amazed this works.
>
> TM> Why? The basic syntax for a scalar variable is $identifier,
> TM> and man perlref (Perl 5.10):
>
>please put your sarcasm detector on high gain. do you realize who you
>replied to?
Of course I realize. Given the man page quotations that I've posted
that some people have ignored, and the test programs and output that
I've posted that some people have ignored, it wouldn't surprise me at
all if even Randal were to join that pack.
> Tim> print "array: ", @{tester()}, "\n";
> >>
> >> You forgot the square brackets.
>
> TM> No, I didn't.
>
>without the [] it isn't close to the idiom being discussed.
I'm not discussing the idiom per se, but the general case that
explains it and much else.
>and as i mentioned it wasn't in "" so it really bypasses the idiom.
The behavior in "..." is a simple consequence of interpolating a
scalar or array in a string.
>you are wandering in the wilderness. please go home!
I'm sorry that I yet fail see by what authority you order me out of
the newsgroup. But if you post it, I'll be sure to follow the fashion
by ignoring it, misreading it, and shifting the goalposts.
--
Tim McDaniel, tmcd@panix.com
Back to comp.lang.perl.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Embedding code in qq{}? XeCycle <XeCycle@Gmail.com> - 2012-03-18 10:56 +0800
Re: Embedding code in qq{}? Uri Guttman <uri@stemsystems.com> - 2012-03-17 23:04 -0400
Re: Embedding code in qq{}? XeCycle <XeCycle@Gmail.com> - 2012-03-18 12:14 +0800
Re: Embedding code in qq{}? tmcd@panix.com (Tim McDaniel) - 2012-03-18 07:07 +0000
Re: Embedding code in qq{}? Ben Morrow <ben@morrow.me.uk> - 2012-03-18 08:37 +0000
Re: Embedding code in qq{}? tmcd@panix.com (Tim McDaniel) - 2012-03-18 22:28 +0000
Re: Embedding code in qq{}? merlyn@stonehenge.com (Randal L. Schwartz) - 2012-03-18 16:18 -0700
Re: Embedding code in qq{}? tmcd@panix.com (Tim McDaniel) - 2012-03-19 02:21 +0000
Re: Embedding code in qq{}? Uri Guttman <uri@stemsystems.com> - 2012-03-19 00:14 -0400
Re: Embedding code in qq{}? tmcd@panix.com (Tim McDaniel) - 2012-03-19 06:42 +0000
Re: Embedding code in qq{}? Ben Morrow <ben@morrow.me.uk> - 2012-03-19 16:40 +0000
Re: Embedding code in qq{}? Uri Guttman <uri@stemsystems.com> - 2012-03-18 19:29 -0400
Re: Embedding code in qq{}? Uri Guttman <uri@stemsystems.com> - 2012-03-18 15:24 -0400
Re: Embedding code in qq{}? tmcd@panix.com (Tim McDaniel) - 2012-03-18 22:33 +0000
Re: Embedding code in qq{}? Uri Guttman <uri@stemsystems.com> - 2012-03-18 19:24 -0400
Re: Embedding code in qq{}? Ben Morrow <ben@morrow.me.uk> - 2012-03-19 00:49 +0000
Re: Embedding code in qq{}? Uri Guttman <uri@stemsystems.com> - 2012-03-18 22:05 -0400
Re: Embedding code in qq{}? tmcd@panix.com (Tim McDaniel) - 2012-03-19 02:55 +0000
Re: Embedding code in qq{}? Uri Guttman <uri@stemsystems.com> - 2012-03-19 00:12 -0400
Re: Embedding code in qq{}? tmcd@panix.com (Tim McDaniel) - 2012-03-19 07:00 +0000
Re: Embedding code in qq{}? Ben Morrow <ben@morrow.me.uk> - 2012-03-19 16:43 +0000
csiph-web