mirror of
https://github.com/noplacenoaddress/RNMnetwork.git
synced 2024-12-14 18:14:23 -05:00
12 lines
238 B
Perl
12 lines
238 B
Perl
|
#!perl
|
||
|
|
||
|
# slurp the entire file
|
||
|
local $/ = undef;
|
||
|
open INFILE, $ARGV[0] or die "Could not open file. $!";
|
||
|
$string = <INFILE>;
|
||
|
close INFILE;
|
||
|
|
||
|
while ($string =~ s/\*\*(.*)\*\* \[\[\d+\]\]\((.*)\)/<a href="$2">$1<\/a>/) {}
|
||
|
|
||
|
print "$string";
|