mirror of
https://github.com/noplacenoaddress/RNMnetwork.git
synced 2024-10-01 01:05:51 -04: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";
|