develooper Front page | perl.perl6.language.regex | Postings from August 2000

RFC 165 (v1) Allow Varibles in tr///

From:
Perl6 RFC Librarian
Date:
August 27, 2000 12:30
Subject:
RFC 165 (v1) Allow Varibles in tr///
Message ID:
20000827193001.31355.qmail@tmtowtdi.perl.org
This and other RFCs are available on the web at
  http://dev.perl.org/rfc/

=head1	TITLE

Allow Varibles in tr///

=head1 VERSION

	Maintainer: Richard Proctor <richard@waveney.org>
	Date: 27 Aug 2000
	Mailing List: perl6-language-regex@perl.org
	Version: 1
	Number: 165

=head1 ABSTRACT

Allow variables in a tr///.  At present the only way to do a tr/$foo/$bar/
is to wrap it up in an eval.  I dont like using evals for this sort of thing.

=head1 DESCRIPTION

Suggested syntax: tr/$foo/$bar/e

With a /e, tr will expand both the LHS and RHS of the translate function.
Either or both could be variables. I am suggesting /e as it is sort of like
/e for s///e.

=head1 IMPLENTATION

No idea, but should be straight forward.

=head1 REFERENCES

None yet.





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About