in reply to calling problem in script

Mostly as a matter of curiousity, why is your entire "piece of code" in sub main {...} except for the call to main() ???   Is there more you're not showing us?

Replies are listed 'Best First'.
Re^2: calling problem in script
by Jenda (Abbot) on Jul 06, 2009 at 23:46 UTC

    Cargoculting. He heard somewhere that the code he wants to run when the script/program gets executed belongs to the function named main() and did not notice those people were talking about a different language.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.