[Israel.pm] Re: Replace with Variable content

ik idokan at gmail.com
Fri Oct 14 06:08:12 PDT 2005


First of all thank you all for your replies. I updated today my Debian
(after a month that it was not up to date), and on v5.8.7 it does work
without any changes of the code.

While the previous version ( I do not remember the exact version),
complained about the variable inside the character class.

Thank you again for the help,


>I would like to do the following:
>use strict;
>my $allowedChars = "a-zA-Z\x{50D}";
>$line =~ s/[^$allowedChars]//gs;
>Now as you can see, this code will not be allowed to be used. So my
>question is how can I do something in this idea ?
>I wish to have one "place" that I define what I allow, that may be
>changed at any given time, so instead going over my entire code over
>and over again, I would like to have the ability to use a "constant"
>like idea...
>Thank you for any help, or RTFM (that I could not find) on this matter.
>And Gmar Hatima Tova and Tzum Kal,

More information about the Perl mailing list