Mark - I have ActivePerl on Win2K and 'perldoc' works fine. ActiveState should have put its 'bin' sub-directory in your path; 'perldoc.bat' is there.
Aloha => Beau. -----Original Message----- From: mark [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 4:30 AM To: [EMAIL PROTECTED] Subject: Re: explanation of tr///cds terms? > I don't use Windows but if you open a DOS/console window and type those > commands at the prompt they should display the relevant documents. > > C:\>perldoc perlop > C:\>perldoc perlre I used the command prompt, which is the only thing resembling a DOS prompt on win2k and got this: " 'perldoc' is not recognised as an internal or external command, operable program or batch file " However, ActiveState Perl has associated itself with all files ending in .pl or .pm > $name =~ tr/a-zA-Z0-9-_ .,:;'&$#@!*()?-//cd; > If the characters listed are say d-h (defgh) then /c means to > transliterate all characters that are not d-h, in other words \x00-c and > i-\xFF (tr/d-h//cd == tr/\x00-ci-\xFF//d) > In my example hex was used to represent characters that can't be > displayed just like "A", "\x41" and "\101" are all different > representations of the character 'A' and "\t", "\x09", "\011" and "\cI" > are all ways to represent the TAB character. > All others are left unchanged. Thanks for your help and your patience with my density. I would like to see if I have this straight now. Which may also lead to another question. :-) transliterate : Websters New World : to write in the characters of another alphabet. The c/ switch passes over the characters in the scalar found in "pat1" leaving them unchanged and renders all others to hex. ($value=~tr/pat1//c;) The /d deletes all characters not found in pat1. If this is so, why would one convert them to hex and then delete them also "/cd" a is done in $name =~ tr/a-zA-Z0-9-_ .,:;'&$#@!*()?-//cd; I didn't write the statement above, I pulled it out of a script that I am trying to use as an example for my own education about perl. I wonder why not just use /d since that is the end result anyway. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]