in reply to Why isn't this subroutine working?

Is dbTools::MySQLqry a copy/paste error?

PS: the O'Reilly Perl book mentions an elsif operator, but when I try it, I get a syntax error (using Eclipse as an IDE), and only elsf works.

I use Eclipse myself and the elsif works fine;) Besides that, Perl would complain about elsf since it's not Perl?!

Replies are listed 'Best First'.
Re^2: Why isn't this subroutine working?
by northwestdev (Acolyte) on May 20, 2009 at 12:29 UTC
    No, it's not a copy/paste error. It's a module I wrote as a MySQL helper. It works just fine. Also, if I take the subroutine code, and place it directly in a module, it works fine. It's only a problem when I call it as a subroutine.