Stas Bekman wrote: > > But you forget that nobody is going pass SVt_PVBM scalar to print(). Why would > they? Do you have a concrete example of someone trying to send a scalar of > type > PV to print? Rafael, can you think of such an example?
Reference to magic scalars ? (\$1) to arrays ? to hashes ? to globs ? to subroutines ? to lvalues ? (\substr("foo",1,1)) > May be to be on the safe side we should check >= SVt_PV and SvPVOK? Yes. SvPOK, even :) (please everyone note that I haven't tested that my suggested change even compiles, not mentioning writing regression tests and such :) -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html