develooper Front page | perl.perl5.porters | Postings from June 2012

Re: [perl #113792] Unused punctuation variables don't interpolate

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
June 22, 2012 16:55
Subject:
Re: [perl #113792] Unused punctuation variables don't interpolate
Message ID:
15557.1340409329@chthon
"Eric Brine" (via RT) <perlbug-followup@perl.org> wrote
   on Fri, 22 Jun 2012 12:57:15 PDT: 

> $ perl -E'"abc" =~ /(b)/; say "@+"'
> 2 2
> 
> $ perl -E'@_ = qw( a b c ); say "@_"'
> a b c
> 
> $ perl -E'@. = qw( a b c ); say "@."'
> @.
> 
> $ perl -E'@. = qw( a b c ); say "@{.}"'
> a b c
> 
> What's up with #3?

What's up with *#4*?  How in the world is dot a legal 
name inside braces without quotes around it?

--tom

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