Oct 17, 2012, 1:59 PM
I did not test your code.
Re: [s660117] Using \? in a variable
If you want me to test or review your code, you first must post it within code tags which retains the formatting (indentation) and makes your code readable (assuming you actually formatted it correctly).
Programming Perl is a great resource book, but not the best choice for learning about regular expressions. If you want a book for that purpose, you should get "Mastering Regular Expressions, 3rd Edition".
You can also learn about regex's by reading the documentation that comes with perl. The program that is used to access the docs is 'perldoc'. If you issue the command 'perldoc perl', you'll get an index of the documentation. There are several related to regex's, such as 'perldoc perlretut', and 'perldoc perlre'.
(This post was edited by FishMonger on Oct 17, 2012, 1:59 PM)