develooper Front page | perl.perl5.porters | Postings from March 2000

Re: [ID 20000330.052] Use of uninitialized value in concatenation (.)

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
March 31, 2000 11:53
Subject:
Re: [ID 20000330.052] Use of uninitialized value in concatenation (.)
Message ID:
200003311953.OAA03782@monk.mps.ohio-state.edu
William R. Ward writes:
> 1. Remember whether we are doing variable interpolation or if the user
> actually spelled it out with '.' between each part of the string, and
> give either "... in concatenation (.)" or "... in string interpolation"
> as the warning, or

Easy.

  a) Define 2 new opcodes concat_qq and joint_qq with proper descriptions.

  b) Put

     #define pp_concat_qq pp_concat
     #define pp_join_qq pp_join

  c) Make tokenizer produce these opcodes instead of OP_JOIN and OP_CONCAT.

Basically, it is a 6-lines patch.

Ilya

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