Re: [webmin-devel] Strict
Emma wasanzy <[email protected]> Fri, 22 Mar 2013 16:05:13 +0000
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <CALgYh1Fb+3CnYR3zKsPdd4uYQc4Lg8FObrkDURPjEbtaDF5HWA@mail.gmail.com> |
--===============2841432060185737797== Content-Type: multipart/alternative; boundary=089e0139ff30d02b7304d8859e57 --089e0139ff30d02b7304d8859e57 Content-Type: text/plain; charset=ISO-8859-1 That is cool. I am using latest perl version though. Thank you. On Mar 22, 2013 2:56 PM, "Chris Nighswonger" <[email protected]> wrote: > On Fri, Mar 22, 2013 at 7:48 AM, Emma wasanzy <[email protected]>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 > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > - > Forwarded by the Webmin development list at [email protected] > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > --089e0139ff30d02b7304d8859e57 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <p>That is cool. I am using latest perl version though. Thank you.</p> <div class=3D"gmail_quote">On Mar 22, 2013 2:56 PM, "Chris Nighswonger= " <<a href=3D"mailto:[email protected]">cnighswonger@fou= ndations.edu</a>> wrote:<br type=3D"attribution"><blockquote class=3D"gm= ail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-le= ft:1ex"> <div class=3D"gmail_quote">On Fri, Mar 22, 2013 at 7:48 AM, Emma wasanzy <s= pan dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_bl= ank">[email protected]</a>></span> wrote:<br><blockquote class=3D"g= mail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-l= eft:1ex"> <p>Hello, </p> <p>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?</p> <br></blockquote></div><br>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:<br><br>#!/usr/bin/perl<br><br>our( %in, %tex= t, %config );<br> <br>use strict;<br>use warnings;<br><br>etc.....<br><br>Older Perl did not = support the 'our' pragma, but 'vars.' [1] So keep that in m= ind if you are using an older Perl.<br><br>Kind Regards,<br>Chris<br><br> [1] <a href=3D"http://perldoc.perl.org/vars.html" target=3D"_blank">http://= perldoc.perl.org/vars.html</a><br> <br>-----------------------------------------------------------------------= -------<br> Everyone hates slow websites. So do we.<br> Make your web apps faster with AppDynamics<br> Download AppDynamics Lite for free today:<br> <a href=3D"http://p.sf.net/sfu/appdyn_d2d_mar" target=3D"_blank">http://p.s= f.net/sfu/appdyn_d2d_mar</a><br>-<br> Forwarded by the Webmin development list at <a href=3D"mailto:webmin-devel@= webmin.com">[email protected]</a><br> To remove yourself from this list, go to<br> <a href=3D"http://lists.sourceforge.net/lists/listinfo/webadmin-devel" targ= et=3D"_blank">http://lists.sourceforge.net/lists/listinfo/webadmin-devel</a= ><br> <br></blockquote></div> --089e0139ff30d02b7304d8859e57-- --===============2841432060185737797== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar --===============2841432060185737797== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline - Forwarded by the Webmin development list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel --===============2841432060185737797==--