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
In reply to Re: Substituting method from object
by Zaxo
in thread Substituting method from object
by Angel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |