any perl-db/emacs jockeys here?
Trying to see the result of a regexp such as "m/$str\Z/i" from perl-db (running in emacs buffer); I've tried x/p and m; x/p return status ("1") and I have no idea what m is telling me; any way I can see how this evaluates without using printf in code?
Mike edit: this is for a perl script to parse hh/pull out "villain c-r <street>"; anyone already done something like this that they'd share? I'll share mine when I'm done but if I don't have to write it I'd rather not... |
Re: any perl-db/emacs jockeys here?
What do you want to see?
A regex is evaluated as an expression, like == and therefore the "result" is boolean in nature. If you want to see what matched, there are special variables for successfull matches. $& gets the part of the string that matched the regex $` gets the part of the string before what matched $' gets the part of the string after what matched It might help tp see a larger context of what you are doing and what you want. |
All times are GMT -4. The time now is 10:11 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.