in reply to Regexp and object's methods.

Hi,

You could always assign the return value of the object method to a variable, then attempt to match that variable:

my $value = C->flag(); if (m/$value/} { print "OK" } else { print "Not OK" }
There may well be a better way, but that's the first that comes to mind.

Hope that helps,
-- Foxcub
A friend is someone who can see straight through you, yet still enjoy the view. (Anon)