--conf option for specifying a different LocalSettings.php. This allows multiple...
[lhc/web/wiklou.git] / maintenance / entities2literals.pl
index f010374..dd47f6b 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/evn perl
+#!/usr/bin/env perl
 # Takes STDIN and converts Converts hexadecimal, decimal and named HTML
 # entities to their respective literals.
 #
@@ -9,7 +9,7 @@
 use encoding 'utf8';
 use strict;
 
-my $file = join /$\//, <>;
+my $file = join /\n/, <>;
 
 $file =~ s/&#(\d+);/chr $1/eg;
 $file =~ s/&#x([0-9a-fA-F]+);/chr hex $1/eg;