From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Importing from Oddmuse? Date: Mon, 28 Oct 2013 21:26:55 +0100 Message-ID: <87li1dqgz4.fsf@Rainer.invalid> References: <526E7C4A.7050804@pfdstudio.com> <87y55dqn7s.fsf@Rainer.invalid> <526EACA0.3070709@pfdstudio.com> <87txg1qk5y.fsf@Rainer.invalid> <526EBC7C.5020403@pfdstudio.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VatP8-0003Li-Uv for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 16:27:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VatP3-00010M-JK for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 16:27:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:56956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VatP3-00010F-Cb for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 16:27:09 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VatP1-0003fP-Dg for emacs-orgmode@gnu.org; Mon, 28 Oct 2013 21:27:07 +0100 Received: from pd9eb1b1f.dip0.t-ipconnect.de ([217.235.27.31]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Oct 2013 21:27:07 +0100 Received: from Stromeko by pd9eb1b1f.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Oct 2013 21:27:07 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Peter Davis writes: > That was the first thing I tried, and Perl complained about an > undefined variable. I may have made a typo though. Nope, my error. $1 gets clobbered by the second replacement. So you'd want what you wrote or somewhat shorter: # hyperlinks s/\[\[([^]]*)\]\]/ my ($l, $o) = ($1, $1); $l =~ s: :_:g; "[[file:$l.org][$o]]"/gex; Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds