Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Wierd behaiviour of Filter::Util::Call

by BrowserUk (Patriarch)
on Jan 29, 2008 at 21:08 UTC ( [id://664998]=note: print w/replies, xml ) Need Help??


in reply to Wierd behaiviour of Filter::Util::Call

Some sort of deep doodoo in the XS voodoo. Perhaps the following code?

# Call.XS ~line 130 SAVESPTR(DEFSV) ;/* save $_ */ /* make $_ use our buffer */ DEFSV = sv_2mortal(newSVpv("", 0)) ;

A maybe workaround is to quote uses of $_, which seems to prevent the bug:

use Filter::Util::Call; BEGIN{ filter_add(sub{ my $s = filter_read; my $t = "$_"; $s; }); } print "hello, world\n";

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://664998]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-19 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found