package ND::Include;
use strict;
use warnings FATAL => 'all';
+use CGI qw{:standard};
require Exporter;
our @ISA = qw/Exporter/;
my ($text) = @_;
$text =~ s{\n}{\n<br/>}g;
- $text =~ s{\[B\](.*?)\[/B\]}{<b>$1</b>};
+ $text =~ s{\[B\](.*?)\[/B\]}{<b>$1</b>}gi;
return $text;
}
+
sub min {
my ($x,$y) = @_;
return ($x > $y ? $y : $x);