Ronald J Kimball <[EMAIL PROTECTED]> writes:

> On Thu, Dec 13, 2001 at 08:36:03AM -0600, [EMAIL PROTECTED] wrote:
> > If you are prepared to change $_:
> > 
> > if (y/a-zA-Z//>2&&y/0-9//>1) {              # 24 chars for the test
> >     print "not valid";
> > }
> 
> That does not change $_.

But, just to keep things interesting, you can't do
     print 'abc123' =~ y/0-9//;
(or anything else): "Can't modify constant item in character
translation".

[...]

-- 
Ariel Scolnicov        |"GCAAGAATTGAACTGTAG"            | [EMAIL PROTECTED]
Compugen Ltd.          |   +++ THIS SPACE TO LET +++    \ We recycle all our Hz
72 Pinhas Rosen St.    |Tel: +972-3-7658117 (Main office)`---------------------
Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555    http://3w.compugen.co.il/~ariels

Reply via email to