in reply to Re: Push can shove it.
in thread Push can shove it.

Thanks guys, I found the problem.

It was variable going out of scope that was not detected by use strict or -w.

BTW, if push(@tmp,$value); had worked initially, I wouldn't have needed to post. You may notice that the sub call is commented out, and there is a lovely (non-working) push statement directly below it.

The basic debug was just placing everything in its proper scope manually. (You see all of those MAIN:: vars...) ~Hammy

Replies are listed 'Best First'.
Re: Re: Re: Push can shove it.
by chromatic (Archbishop) on Feb 23, 2002 at 05:21 UTC
    I call.
    my @args = ( 1 .. 3 ); push @args, 'foo'; print "@args\n";
    If this does not work on your machine, your version of Perl is horribly broken.

    I seriously doubt that to be the case.