RNMnetwork/Part 1 - The worldwide neural control network/test.pl
Riccardo Giuntoli 8a04a9463b unixporn
2020-04-21 09:28:07 +02:00

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";