I'm playing very heavy with the template system... Trying to use subroutine calls I found a very strange bug:
If I call a subroutine without any parameter everything works fine, for example, calling:
<%CGI::header%>
will return the header string correctly.
But if I try to use a subroutine passing a value something goes wrong....
<%my_package::sayhello ($Name)%>
in this example the subroutine supposed to get the value of tag <%Name%>, do something, and return a string.
Well, this is not true. The subroutine wont get the correct value <%Name%> but a hash-ref containing all tags in memory in that time.
Does anybody found the same problem?
cheers
Lepo - lepo@lepo.org
If I call a subroutine without any parameter everything works fine, for example, calling:
<%CGI::header%>
will return the header string correctly.
But if I try to use a subroutine passing a value something goes wrong....
<%my_package::sayhello ($Name)%>
in this example the subroutine supposed to get the value of tag <%Name%>, do something, and return a string.
Well, this is not true. The subroutine wont get the correct value <%Name%> but a hash-ref containing all tags in memory in that time.
Does anybody found the same problem?
cheers
Lepo - lepo@lepo.org