develooper Front page | perl.perl5.porters | Postings from May 2003

Should we deprecate $; ?

Thread Next
Rafael Garcia-Suarez
May 13, 2003 14:51
Should we deprecate $; ?
Message ID:
$; is the subscript separator for multidimensional array emulation
(as says perlvar).  Basically it works like this :

    $ perl -MO=Deparse -e '$x{1,2}'
    $x{join $;, 1, 2};

In our Unicode and UTF8 world, it's becoming more and more unsafe to use
that kind of hack, esp. when better alternative solutions are available.

I therefore suggest to add to 5.9 a deprecation warning

    "Use of multidimensional array emulation is deprecated"

for any use of the implicit join($;,...).

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About