Home : Products : Gossamer Forum : Discussion :

Products: Gossamer Forum: Discussion: Re: [pugdog] <%if var contains ... or <%if var like ...: Edit Log

Here is the list of edits for this post
Re: [pugdog] <%if var contains ... or <%if var like ...
Thank you very much. The global I use is in fact this one:

Code:
sub {
my ($tag, $str) = @_;
$str =~ s|A|a|gi;
$str =~ s||a|gi;
$str =~ s||a|gi;
$str =~ s||a|gi;
$str =~ s||a|gi;
$str =~ s||a|gi;
$str =~ s||a|gi;
$str =~ s|B|b|gi;
$str =~ s|C|c|gi;
$str =~ s||c|gi;
$str =~ s||c|gi;
$str =~ s|D|d|gi;
$str =~ s|E|e|gi;
$str =~ s||e|gi;
$str =~ s||e|gi;
$str =~ s||e|gi;
$str =~ s||e|gi;
$str =~ s||e|gi;
$str =~ s||e|gi;
$str =~ s||e|gi;
$str =~ s||e|gi;
$str =~ s|F|f|gi;
$str =~ s|G|g|gi;
$str =~ s|H|h|gi;
$str =~ s|I|i|gi;
$str =~ s||i|gi;
$str =~ s||i|gi;
$str =~ s||i|gi;
$str =~ s||i|gi;
$str =~ s||i|gi;
$str =~ s||i|gi;
$str =~ s|J|j|gi;
$str =~ s|K|k|gi;
$str =~ s|L|l|gi;
$str =~ s|M|m|gi;
$str =~ s|N|n|gi;
$str =~ s|O|o|gi;
$str =~ s||o|gi;
$str =~ s||o|gi;
$str =~ s||o|gi;
$str =~ s||o|gi;
$str =~ s||o|gi;
$str =~ s||o|gi;
$str =~ s|P|p|gi;
$str =~ s|Q|q|gi;
$str =~ s|R|r|gi;
$str =~ s|S|s|gi;
$str =~ s|T|t|gi;
$str =~ s|U|u|gi;
$str =~ s||u|gi;
$str =~ s||u|gi;
$str =~ s||u|gi;
$str =~ s||u|gi;
$str =~ s||u|gi;
$str =~ s||u|gi;
$str =~ s|V|v|gi;
$str =~ s|W|w|gi;
$str =~ s|X|x|gi;
$str =~ s|Y|y|gi;
$str =~ s|Z|z|gi;

return { $tag => $str };
}


This global works perfectly for me. But maybe your solution use less ressources than mine in very long text ??

Thank you again! Smile

Franois

Last edited by:

Franco: Aug 21, 2003, 8:47 AM

Edit Log: