@+ magic variable

Luis Motta Campos luismottacampos at yahoo.co.uk
Thu Feb 15 14:40:54 GMT 2007


On Feb 15, 2007, at 3:03 PM, Simon Wilcox wrote:
> On Thu, 15 Feb 2007, Rafael Garcia-Suarez wrote:
>
>> In 5.6.1. However in 5.8.0 array began to always interpolate in  
>> double
>> quoted strings. Did you have warnings on ?
>
> Warnings apparently make no difference:
>
> #!/usr/bin/perl
>
> use strict;
> use warnings;
>
> my $str='padding@@@';
> $str =~ s/@+$//g;
> print "$str\n";

   Of course not.
   You're interpolating an (empty) array named @+, that is not  
special, but stills an array.
   I don't see any reason for perl warnings annoyance.

--
Luis Motta Campos is a software engineer,
perl fanatic evangelist, and amateur {cook, photographer}




More information about the london.pm mailing list