[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] TrackSub is Broke?


I'd like to use the option in the Track.pm module to define my own subroutine to save the tracking information but it appears to be broke or just impossible to do. I've tried about every way I can think of to define TrackSub in my catalog.cfg file so $Vend::Cfg->{TrackSub} containing a reference to a subroutine. There's no way to make it work.

What get's me the closest to working is putting the following in interchange.cfg

AddDirective  TrackSub

Then I put the following in catalog.cfg;

TrackSub customtrack
TrackSub <&EOR
sub {
   return 'test';
}
EOR

That gives me the following error:

Runtime error: Can't use string ("test") as a subroutine ref while "strict refs" in use at /usr/lib/interchange/lib/Vend/Track.pm line 188.

Could someone let me know how to define a subroutine ref to make this work? Or is this just broke?

--

Sincerely,

Duane Hinkley
Down Home Web Design, Inc.
(208) 424-0572 Fax(208) 587-0738

suppressed
www.downhomewebdesign.com

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.