in reply to Substituting method from object
To make the method be called in the right argument os s///, use the '/e' modifier:
$error_string =~ s/error/$user->get_error_string/e;
If not using templates, I'd prefer to just call &CGI::font or the corresponding font method.
After Compline,
Zaxo
|
|---|