http://www.perlmonks.org?node_id=830427


in reply to Re^3: Getting a hash from a file
in thread Getting a hash from a file

Thanks! I just tried doing it as .pl, .cfg, and .txt. I get the exact same error as with .pm.

Am I screwing up elsewhere in the code, perhaps?

Kaiti
Swiss Army Nerd

Replies are listed 'Best First'.
Re^5: Getting a hash from a file
by jethro (Monsignor) on Mar 24, 2010 at 01:52 UTC
    You have strict on. Add a line our %Verbs; before the do-line and your script should work.

    UPDATE: Wrong idea, it really was scoping like BrowserUK said. Still, my remedy works