mirror of
https://github.com/noplacenoaddress/RNMnetwork.git
synced 2024-12-28 08:39:39 -05:00
12 lines
238 B
Perl
Executable File
12 lines
238 B
Perl
Executable File
#!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";
|