From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Ballard Newsgroups: gmane.emacs.help Subject: eval regexp in perl-db? Date: Sat, 19 Nov 2005 16:50:01 GMT Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1132419084 18267 80.91.229.2 (19 Nov 2005 16:51:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2005 16:51:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 19 17:51:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EdVuz-00076Y-Dv for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Nov 2005 17:50:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdVuy-0007G5-Ta for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Nov 2005 11:50:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!newsread.com!news-xfer.newsread.com!postnews.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny04.POSTED!de648aa3!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-NNTP-Posting-Host: 141.157.163.252 Original-X-Complaints-To: abuse@verizon.net Original-X-Trace: trndny04 1132419001 141.157.163.252 (Sat, 19 Nov 2005 11:50:01 EST) Original-NNTP-Posting-Date: Sat, 19 Nov 2005 11:50:01 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:135575 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31172 Archived-At: Thought I'd done this before but am not getting the result I was hoping for; I'm trying to see what exprs evaluate as (without needing printfs in code). The expr is "m/$str\Z/i"; at perl-db prompt I try x/p/m but x/p return "1" and whatever m returns is Greek (to me). Is there some way to eval regexps from perl-db prompt in emacs? If I do have to resort to printf in code, which pattern space (if that's what it's called) do I look at? $_, $`, $', $+ aren't showing me the result of the expr... Mike --