On Fri, Mar 22, 2013 at 7:48 AM, Emma wasanzy <emma.wasanzy@gmail.com> wrote:

Hello,

I have noticed that, the webmin API doesnt support the use of strict and warning. Because any time I tried using them, I get so many "Global ...." errors which are related to the API. Why isn't the API using strict?



I'm sure only the webmin developer knows why he did not use strict, however, you can still use it. Just initialize vars you intend on importing thus:

#!/usr/bin/perl

our( %in, %text, %config );

use strict;
use warnings;

etc.....

Older Perl did not support the 'our' pragma, but 'vars.' [1] So keep that in mind if you are using an older Perl.

Kind Regards,
Chris

[1] http://perldoc.perl.org/vars.html