in reply to sub strict refs errors.

What are HL1, HL1 and txt and why are you concatenating the last two?

What Perl sees are three bare words and assumes they are subroutine calls (HL1, HL1 and txt). The . is the concatenation operator. Perhaps what you meant was:

my @games = HLDS::ReadFile ('HL1', 'HL1.txt');

Update: Doh, /me slaps self about the head with a wet fish having read the fine print in the OP.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: sub strict refs errors.
by davidov0009 (Scribe) on Oct 03, 2006 at 01:16 UTC
    Argh, That was a really stupid mistake on my part there with the test operator...Sorry about that guys, thanks for the fast replies. I'll quote the individual parameters and see if it returns right. Thanks.