On Saturday, May 25, 2002, at 08:18 , mark wrote:
[..]
> Actually this goes back to my initial question about this:
>
> $name =~ tr/a-zA-Z0-9-_ .,:;'&$#@!*()?-//cd;
[..]
> So my question is (drumroll) : Do I take it to mean that /c also adds the
> negative values of the given SearchPattern to the SearchPattern?  
> Otherwise,
> what is the "complement of /a-z/ if not /-(a-z)/ ?

john ran down most of this in

        http://archive.develooper.com/beginners%40perl.org/msg26862.html

cf also:

        http://archive.develooper.com/beginners%40perl.org/msg26864.html

As Tagore just mentioned.

Given that your opening interest in that piece of squirrellyNeff
was for 'enlightenment' - perchance the beginning of wisdom is
to accept that sometimes people just DO strange things in code
that is hard to follow - and not well documented internally or
externally.

Allow me the argument by analogy here - I called up my old
unterStumpenFumbler and asked him -

        "So I was gonna steal some code from the old jel code line,
                only to be confused by <assertion> and I just noticed
                in the 3rd edition that they say that <assertion> is
                not really recommended - so why did you do that?"

and his answer was basically,

        "because at the time we were all learning that it was
                not really a recommended course of action...."

If you concern here is to grok things like how to effectively
do things that are not confusing - then you may want to limit
your use of 'transliteration' to only those cases where you can
see a clear and obvious need to translate from one data type
into another data type.

At which point you can then move along to the more interest,
IMMHO, stack of sheer madness as to what one should or should
not do with the rest of the RegEx reality space...



ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to