in reply to Unknown problem, throws "Useless use of privt var in void contxt"

Not sure about the error, per say, but DO NOT DO THIS!
my @ch_refnums = &findTickers($file_cont, $anndate);
Do this instead:
my @ch_refnums = findTickers($file_cont, $anndate);
Only use & if you are overriding one of Perl's built-in functions.

Replies are listed 'Best First'.
Re^2: Unknown problem, throws "Useless use of privt var in void contxt"
by S0ci1_Hak0n (Novice) on Jan 21, 2008 at 22:50 UTC
    Thx for that tip, i've been using an ancient tome to perl, and that's how it says to do it. One q, why would it be important to remove the &? thx Jon

        Not to put too fine a point on it, but that example seems to be about using snafu() instead of &snafu but there isn't anything against &snafu(). Is there any reason *not* to use &snafu()?

        Software speaks in tongues of man; I debug, therefore I code.
        Stop saying 'script'. Stop saying 'line-noise'.