Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Payooo] 'eq' and extra spaces after 'and' in comparisons

Quote Reply
Re: [Payooo] 'eq' and extra spaces after 'and' in comparisons In reply to
Me again...


OK site, part of compiled template:


$tags->{q{foo}} = do { my $none = (q{1}); \$none };
$tags->{q{bar}} = do { my $none = (q{1}); \$none };

if ($self->_get_var(q{foo}, { escape => 0, strict => 0, merge => 0 }) eq q{1} and $self->_get_var(q{bar}, { escape => 0, strict => 0, merge => 0 }) eq q{1}) {
$return .= q{
foo bar, eq, NO extra spaces after and
};
}

if ($self->_get_var(q{foo}, { escape => 0, strict => 0, merge => 0 }) eq q{1} and $self->_get_var(q{bar}, { escape => 0, strict => 0, merge => 0 }) eq q{1}) {
$return .= q{
foo bar, eq, extra spaces after and
};
}

if ($self->_get_var(q{foo}, { escape => 0, strict => 0, merge => 0 }) == q{1} and $self->_get_var(q{bar}, { escape => 0, strict => 0, merge => 0 }) == q{1}) {
$return .= q{
foo bar, ==, NO extra spaces after and
};
}

if ($self->_get_var(q{foo}, { escape => 0, strict => 0, merge => 0 }) == q{1} and $self->_get_var(q{bar}, { escape => 0, strict => 0, merge => 0 }) == q{1}) {
$return .= q{
foo bar, ==, extra spaces after and
};
}




Faulty site, part of compiled template:


$tags->{q{foo}} = do { my $none = (q{1}); (ref $none eq 'ARRAY' or ref $none eq 'HASH') ? $none : \$none };
$tags->{q{bar}} = do { my $none = (q{1}); (ref $none eq 'ARRAY' or ref $none eq 'HASH') ? $none : \$none };

if ($self->_get_var(q{foo}, { escape => 0, strict => 0, merge => 0 }) eq q{1} and $self->_get_var(q{bar}, { escape => 0, strict => 0, merge => 0 }) eq q{1}) {
$return .= q{
foo bar, eq, NO extra spaces after and
};
}

if ($self->_get_var(q{foo}, { escape => 0, strict => 0, merge => 0 }) eq q{1' and bar eq '1}) {
$return .= q{
foo bar, eq, extra spaces after and
};
}

if ($self->_get_var(q{foo}, { escape => 0, strict => 0, merge => 0 }) == q{1} and $self->_get_var(q{bar}, { escape => 0, strict => 0, merge => 0 }) == q{1}) {
$return .= q{
foo bar, ==, NO extra spaces after and
};
}

if ($self->_get_var(q{foo}, { escape => 0, strict => 0, merge => 0 }) == q{1' and bar == '1}) {
$return .= q{
foo bar, ==, extra spaces after and
};
}



I am not an expert but I can see that some serious stuff is missing Whistle
Subject Author Views Date
Thread 'eq' and extra spaces after 'and' in comparisons Payooo 5536 Sep 12, 2010, 3:43 AM
Thread Re: [Payooo] 'eq' and extra spaces after 'and' in comparisons
Andy 5394 Sep 12, 2010, 5:06 AM
Thread Re: [Andy] 'eq' and extra spaces after 'and' in comparisons
Payooo 5393 Sep 12, 2010, 5:37 AM
Thread Re: [Payooo] 'eq' and extra spaces after 'and' in comparisons
Payooo 5400 Sep 12, 2010, 5:52 AM
Post Re: [Payooo] 'eq' and extra spaces after 'and' in comparisons
Payooo 5372 Sep 12, 2010, 6:19 AM
Thread Re: [Payooo] 'eq' and extra spaces after 'and' in comparisons
brewt 5354 Sep 12, 2010, 10:05 PM
Post Re: [brewt] 'eq' and extra spaces after 'and' in comparisons
Payooo 5338 Sep 13, 2010, 12:53 AM