[ic] $Tag->data in a UserTag

Grant emailgrant at gmail.com
Mon Jul 31 11:46:45 EDT 2006


> Hmm if what you say is accurate then the only thing it could be is
> that your $variable is not set to what you are expecting it to be.
>
> I'd try either ::logError( "my var is $variable") & check your
> error.log or to be sure of its value try:
>
> my $var = '00123';
> my $new_var = $::Tag->data( { table => 'mytable', field => 'myfield',
> key => $var } );
>
> If that works then try log var at a number of places throughout the
> page & see whats happening to it because if its working when
> hardcoded then i'll be a silly mistake most likely.
>
> Brent Kelly
> Zeald.com

Thanks Brent and Racke.  I needed to change this:

my $order_number = @_;

to this:

my ($order_number) = @_;

- Grant


More information about the interchange-users mailing list