in reply to Undefined Subroutine errors

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Undefined Subroutine errors
by ikegami (Patriarch) on Jul 17, 2006 at 20:23 UTC
    That won't help if you use parens around your arguments.
    >perl -c -Mstrict -e "test 'abc'" String found where operator expected at -e line 1, near "test 'abc'" (Do you need to predeclare test?) syntax error at -e line 1, near "test 'abc'" -e had compilation errors. >perl -c -Mstrict -e "test('abc')" -e syntax OK
Re^2: Undefined Subroutine errors
by enemyofthestate (Monk) on Jul 17, 2006 at 22:11 UTC
    Yes.
    use strict use warnings;
    Are alway at the top of any program with more about ten lines.