Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: A graphical regular expression tester.

by liverpole (Monsignor)
on Dec 07, 2006 at 19:00 UTC ( #588430=note: print w/replies, xml ) Need Help??


in reply to Re^2: A graphical regular expression tester.
in thread A graphical regular expression tester.

Hi reasonablekeith,

Yes, it's because you're not doing what you think you're doing with:

$check_switch_i->bind('<Button-1>', \&button_run('now'));

If you run perl -MO=Deparse on that, it'll show you:

$check_switch_i->bind('<Button-1>', \(&button_run('now')));

Which means that you're calling bind with a reference to the results of a call to the subroutine button_run.

What you want, instead (if you're going to use that style of notation), is the anonymous list syntax:

$check_switch_i->bind('<Button-1>', [ \&button_run, 'now' ]);

s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2022-12-03 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?