[% setvar title Remove "In string @ must be \@" fatal error %]
Note: these documents may be out of date. Do not use as reference! |
To see what is currently happening visit http://www.perl6.org/
Remove "In string @ must be \@" fatal error
Maintainer: Nathan Wiger <nate@wiger.org> Date: 15 Aug 2000 Last-Modified: 16 Sep 2000 Mailing List: perl6-language@perl.org Number: 105 Version: 2 Status: Frozen
Currently, if you write:
$email = "nate@wiger.org";
You get a fatal error:
In string, @wiger now must be written as \@wiger
This should be removed altogether in Perl 6.
This is something that was put in to catch Perl 4 to Perl 5 migration. Perl 6 shouldn't need it, and should just assume that "@wiger" is an array, even if it's unitialized. This is what it does for all the other data types.
As Randal noted, this whole RFC is probably better phrased as:
array interpolation should work exactly like scalar interpolation
And I agree.
People that are relying on this to catch sloppy coding should be beaten.
Remove the error altogether. Perl 5's been out for years.
hfile//www.mail-archive.com/perl6-language@perl.org/msg02231.html