in reply to Re^2: Removing Single Quote Problem
in thread Removing Single Quote Problem

What problems? I would also recommend reading perlstyle
next unless defined($item->{'title'}) && defined($item->{'link +'}) && defined($item->{'description'});
could be written as
next unless defined $item->{title} and defined $item->{link} and defined $item->{description};
Also, why are you setting $output after trying to strip the singlequotes?

Ordinary morality is for ordinary people. -- A.C.

Replies are listed 'Best First'.
Re^4: Removing Single Quote Problem
by Roy Johnson (Monsignor) on Feb 10, 2005 at 22:01 UTC
    I like
    next if grep !defined, @$item{qw(title link description)};
    But it would be nice if the OP would do a better job of describing the problem(s).

    Caution: Contents may have been coded under pressure.
Re^4: Removing Single Quote Problem
by Anonymous Monk on Feb 10, 2005 at 21:36 UTC
    How does your suggestion improve the code? Perlstyle doesn't say that we have to use "and" rather than "&&". I find "&&" more readable.
      It doesn't. It is just more readable. The better one can read and understand your problem the better he can help. And that's why we're here, huh? :D

      Ordinary morality is for ordinary people. -- A.C.
        It is just more readable.
        No it's not. It just looks more like Pascal.