in reply to Regexp and object's methods.
You could always assign the return value of the object method to a variable, then attempt to match that variable:
There may well be a better way, but that's the first that comes to mind.my $value = C->flag(); if (m/$value/} { print "OK" } else { print "Not OK" }
Hope that helps,
-- Foxcub
A friend is someone who can see straight through you, yet still enjoy the view. (Anon)
|
|---|