On 10/28/13, 3:18 PM, Achim Gratz wrote:
Peter Davis writes:
Excellent! I modified it slightly to keep the spaces in the display
string:
This is better, I'd think:

# hyperlinks
s/\[\[([^]]*)\]\]/
my $l = $1;
$l =~ s: :_:g;
"[[file:$l.org][$1]]"/gex;

That was the first thing I tried, and Perl complained about an undefined variable. I may have made a typo though.

Thanks!

Cheers,
-pd

--
Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com


Reply via email to