Hi there,
I'm trying to call an external method passing a hash as reference but I've some 
issues doing that.

Here you have a sample of what I'm doing:
in .tt file 
[% obj.method( hashkey1 => value1 ) %]

This is the perl function I'm calling from tt 

package obj
sub method {
        my ($self,%args) = @_;

        while ( my ($k, $v ) = each  %args ) {
print "Saving in session $k => " . (ref($v) ? Dumper($v) : $v);
            }
 }

I call this function from any perl file with no problem at all but when I call 
this function from tt, I'm getting a hash o hash, is that true?
What am I doing wrong?

TIA
Juan
                                          
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to