in reply to Warning: Freeing unreferenced scalar

It's interesting that all three of your modules cause warnings yet strict, bigint and File::Basename don't. I would try to find what it is about your modules that is causing the warning. Maybe a simple test program with a minimal module:

package Test::Package; 1;

Then load this from:

#!/usr/bin/perl use v5.8.2; # Use the version which is on the AIX machines use strict; use bigint; use File::Basename; use lib File::Basename::dirname($0); use Test::Package; use FunctionsAPI;

With something like a binary search, adding and removing bits of FunctionsAPI.pm to/from Test/Package.pm, it shouldn't take long to find what is causing the warnings.

Replies are listed 'Best First'.
Re^2: Warning: Freeing unreferenced scalar
by mck (Initiate) on Aug 26, 2009 at 08:44 UTC
    That was a great idea. I wonder that I didn't hit on it myself.

    So the problem I found out was:
    on AIX we have an old bigint module. I've read that it is globally tunred on and can't be turned off by no use bigint. But I thought that this doesn't count also for all files which are included.
    So the trick was to put the use bigint behind my "use modules"...

    Thank you so much ig and also all other monks in this glory monastery...

    cu mck