[ic] [interchange] Eval the Encode::PERLQQ module, to avoid errors when it and Encode are not present

Josh Lavin josh at perusion.net
Thu Jun 28 17:08:48 UTC 2012

Quoting Jon Jensen (jon at endpoint.com):
> On Wed, 27 Jun 2012, David Christensen wrote:
> >>+	eval {
> >>+		require Encode::PERLQQ;
> >>+		$Have_encode = 1;
> >>+	};
> >
> >I believe PERLQQ is a symbol (constant) in the Encode package, not
> >a package itself, so I don't think this is actually testing for
> >what's intended, and would in fact never succeed. Or am I missing
> >something?
> Sure looks that way to me in a quick isolated test script.
> Josh, did you ever see $Have_encode get set?

No, I don't use it with that, so it would be great to have someone test.
This was just my feeble attempt to make it work for me, and hope to not
break anything for others. :-)

Josh Lavin
Perusion -- Expert Interchange Consulting    http://www.perusion.com/

More information about the interchange-users mailing list