Re: [webmin-devel] Strict

Emma wasanzy <[email protected]> Fri, 22 Mar 2013 19:22:45 +0000
Newsgroups gmane.comp.web.webmin.devel
Message-ID <CALgYh1Ft-amBHBYAf=V+G46Dk-cQtwB-fyJeoVcOvTJ+9inB9Q@mail.gmail.com>
--===============5391632686638295516==
Content-Type: multipart/alternative; boundary=047d7b5d95894657f504d8886191

--047d7b5d95894657f504d8886191
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Ok Jamie, thank you so much for the good works!
On Mar 22, 2013 6:23 PM, "Jamie Cameron" <[email protected]> wrote:

> Actually, "use strict" should work just fine - a while back I updated the
> core Webmin API to use strict and warnings modes, and all new modules hav=
e
> been written to turn those on.
>
> For example, see the module in the "webmin" subdirectory for how this is
> done.
>
> On 22/Mar/2013 09:08 Emma wasanzy <[email protected]> wrote ..
>
> Oh yes Jamie has done a great work and is really helping me a lot. I was
> only asking to know if there was a special reason why strict hasn't been
> used. It might help my knowledge tooo.
> On Mar 22, 2013 3:06 PM, "PEOPLES, MICHAEL P" <[email protected]<http://repl=
y_mail.cgi?new=3D1&to=3Dmp4783%40att%2Ecom>>
> wrote:
>
>>  I cannot speak for Jamie, at whose feet I gladly grovel, but my theory
>> is that it made Webmin and the attendant code more =93inclusive=94 of wh=
at
>> might be added to it.   Again, my Perl knowledge is pathetic, but that=
=92s my
>> theory.****
>>
>> ** **
>>
>> What Jamie built, for those of you who have taken the time to really
>> consider it, is a monumental achievement and contribution to system
>> administrators all over the world.  I=92m not =93polishing apples=94 her=
e.  I owe
>> countless hours =93recovered=94 through the use of Webmin to the guy.***=
*
>>
>> ** **
>>
>> Michael Peoples (mp4783)****
>>
>> iGEMS COE, Deployment, Engineering, Application Support and Security****
>>
>> Global Service Assurance, M5****
>>
>> AT&T Business Solutions****
>>
>> Office: +1 614-886-0923****
>>
>> Mobile: +1 614-886-0923****
>>
>> ** **
>>
>> Senior Systems Manager****
>>
>> [email protected] <http://reply_mail.cgi?new=3D1&to=3Dmpeoples%40att%2Eco=
m>***
>> *
>>
>> ** **
>>
>> *This e-mail and any files transmitted with it are AT&T property, are
>> confidential, and are intended solely for the use of the individual or
>> entity to whom this email is addressed. If you are not one of the named
>> recipient(s) or otherwise have reason to believe that you have received
>> this message in error, please notify the sender and delete this message
>> immediately from your computer. Any other use, retention, dissemination,
>> forwarding, printing, or copying of this e-mail is strictly prohibited."=
*
>> ****
>>
>> ** **
>>
>> *From:* Chris Nighswonger [mailto:[email protected]<http://re=
ply_mail.cgi?new=3D1&to=3Dcnighswonger%40foundations%2Eedu>]
>>
>> *Sent:* Friday, March 22, 2013 10:55 AM
>> *To:* Webmin development list
>> *Subject:* Re: [webmin-devel] Strict****
>>
>> ** **
>>
>> On Fri, Mar 22, 2013 at 7:48 AM, Emma wasanzy <[email protected]<ht=
tp://reply_mail.cgi?new=3D1&to=3Demma%2Ewasanzy%40gmail%2Ecom>>
>> 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 import=
ing
>> 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 tha=
t
>> 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]<http=
://reply_mail.cgi?new=3D1&to=3Dwebmin%2Ddevel%40webmin%2Ecom>
>> To remove yourself from this list, go to
>> http://lists.sourceforge.net/lists/listinfo/webadmin-devel
>>
>>
>
>
> -------------------------------------------------------------------------=
-----
> 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
>
>

--047d7b5d95894657f504d8886191
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<p>Ok Jamie, thank you so much for the good works!</p>
<div class=3D"gmail_quote">On Mar 22, 2013 6:23 PM, &quot;Jamie Cameron&quo=
t; &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; w=
rote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>Actually, &quot;use strict&quot; should work just fine - a while back I =
updated the core Webmin API to use strict and warnings modes, and all new m=
odules have been written to turn those on.<br><br>For example, see the modu=
le in the &quot;webmin&quot; subdirectory for how this is done.</p>

  <p>On 22/Mar/2013 09:08 Emma wasanzy &lt;<a href=3D"mailto:emma.wasanzy@g=
mail.com" target=3D"_blank">[email protected]</a>&gt; wrote ..
</p>
  <blockquote type=3D"cite">=20
    <p>Oh yes Jamie has done a great work and is really helping me a lot. I=
 was only asking to know if there was a special reason why strict hasn&#39;=
t been used. It might help my knowledge tooo.</p>=20
    <div class=3D"gmail_quote">On Mar 22, 2013 3:06 PM, &quot;PEOPLES, MICH=
AEL P&quot; &lt;<a href=3D"http://reply_mail.cgi?new=3D1&amp;to=3Dmp4783%40=
att%2Ecom" target=3D"_blank">[email protected]</a>&gt; wrote:<br type=3D"attri=
bution">

      <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b=
order-left-width:1px;border-left-color:#cccccc;border-left-style:solid;padd=
ing-left:1ex">=20
        <div lang=3D"EN-US" link=3D"blue" vlink=3D"purple">=20
          <div>=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:#0707b9">I cannot speak for Jamie, at whose feet I gladly gr=
ovel, but my theory is that it made Webmin and the attendant code more =93i=
nclusive=94 of what might be added to it.=A0=A0 Again, my Perl knowledge
 is pathetic, but that=92s my theory.<u></u><u></u></span></p>=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:#0707b9"><u></u> <u></u></span></p>=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:#0707b9">What Jamie built, for those of you who have taken t=
he time to really consider it, is a monumental achievement and contribution=
 to system administrators all over the world.=A0 I=92m not =93polishing
 apples=94 here.=A0 I owe countless hours =93recovered=94 through the use o=
f Webmin to the guy.<u></u><u></u></span></p>=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:#0707b9"><u></u> <u></u></span></p>=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:blue">Michael Peoples (mp4783)<u></u><u></u></span></p>=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:blue">iGEMS COE, Deployment, Engineering, Application Suppor=
t and Security<u></u><u></u></span></p>=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:blue">Global Service Assurance, M5<u></u><u></u></span></p>=
=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:blue">AT&amp;T Business Solutions<u></u><u></u></span></p>=
=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:blue">Office:=A0<a href=3D"tel:%2B1%20614-886-0923" value=3D=
"+16148860923" target=3D"_blank">+1 614-886-0923</a><u></u><u></u></span></=
p>=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:blue">Mobile: <a href=3D"tel:%2B1%20614-886-0923" value=3D"+=
16148860923" target=3D"_blank">+1 614-886-0923</a><u></u><u></u></span></p>=
=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:blue"><u></u> <u></u></span></p>=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:blue">Senior Systems Manager<u></u><u></u></span></p>=20
            <p class=3D"MsoNormal"><span style=3D"font-size:10pt;font-famil=
y:&#39;Courier New&#39;;color:blue"><a href=3D"http://reply_mail.cgi?new=3D=
1&amp;to=3Dmpeoples%40att%2Ecom" target=3D"_blank"><span style=3D"font-size=
:12pt">[email protected]</span></a></span><span style=3D"font-size:11pt;font=
-family:&#39;Courier New&#39;;color:#0707b9"><u></u><u></u></span></p>
=20
            <p class=3D"MsoNormal"><span style=3D"font-size:11pt;font-famil=
y:Calibri,sans-serif;color:#0707b9"><u></u> <u></u></span></p>=20
            <p class=3D"MsoNormal"><em><span style=3D"font-size:10pt;font-f=
amily:Arial,sans-serif">This e-mail and any files transmitted with it are A=
T&amp;T property, are confidential, and are intended solely for the use of =
the individual or entity to whom this
 email is addressed. If you are not one of the named recipient(s) or otherw=
ise have reason to believe that you have received this message in error, pl=
ease notify the sender and delete this message immediately from your comput=
er. Any other use, retention, dissemination,
 forwarding, printing, or copying of this e-mail is strictly prohibited.&qu=
ot;</span></em><span style=3D"font-size:11pt;font-family:Calibri,sans-serif=
;color:blue"><u></u><u></u></span></p>=20
            <p class=3D"MsoNormal"><span style=3D"font-family:&#39;Courier =
New&#39;;color:#0707b9"><u></u> <u></u></span></p>=20
            <div style=3D"border-style:solid none none;border-top-color:#b5=
c4df;border-top-width:1pt;padding:3pt 0in 0in">=20
              <p class=3D"MsoNormal"><strong><span style=3D"font-size:10pt;=
font-family:Tahoma,sans-serif">From:</span></strong><span style=3D"font-siz=
e:10pt;font-family:Tahoma,sans-serif"> Chris Nighswonger [mailto:<a href=3D=
"http://reply_mail.cgi?new=3D1&amp;to=3Dcnighswonger%40foundations%2Eedu" t=
arget=3D"_blank">[email protected]</a>]
<br> <strong>Sent:</strong> Friday, March 22, 2013 10:55 AM<br> <strong>To:=
</strong> Webmin development list<br> <strong>Subject:</strong> Re: [webmin=
-devel] Strict<u></u><u></u></span></p>=20
            </div>=20
            <p class=3D"MsoNormal"><u></u> <u></u></p>=20
            <div>=20
              <p class=3D"MsoNormal">On Fri, Mar 22, 2013 at 7:48 AM, Emma =
wasanzy &lt;<a href=3D"http://reply_mail.cgi?new=3D1&amp;to=3Demma%2Ewasanz=
y%40gmail%2Ecom" target=3D"_blank">[email protected]</a>&gt; wrote:<u>=
</u><u></u></p>
=20
              <p>Hello, <u></u><u></u></p>=20
              <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 =
&quot;Global ....&quot; errors which are related to the API. Why isn&#39;t =
the API using strict?<u></u><u></u></p>
=20
              <p class=3D"MsoNormal"><u></u> <u></u></p>=20
            </div>=20
            <p class=3D"MsoNormal"><br>
I&#39;m sure only the webmin developer knows why he did not use strict, how=
ever, you can still use it. Just initialize vars you intend on importing th=
us:<br> <br>
#!/usr/bin/perl<br> <br>
our( %in, %text, %config );<br> <br>
use strict;<br>
use warnings;<br> <br>
etc.....<br> <br>
Older Perl did not support the &#39;our&#39; pragma, but &#39;vars.&#39; [1=
] So keep that in mind 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><u></u><u></u></p>=20
          </div>=20
        </div> <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/sf=
u/appdyn_d2d_mar" target=3D"_blank">http://p.sf.net/sfu/appdyn_d2d_mar</a><=
br>-<br>
Forwarded by the Webmin development list at <a href=3D"http://reply_mail.cg=
i?new=3D1&amp;to=3Dwebmin%2Ddevel%40webmin%2Ecom" target=3D"_blank">webmin-=
[email protected]</a><br>
To remove yourself from this list, go to<br> <a href=3D"http://lists.source=
forge.net/lists/listinfo/webadmin-devel" target=3D"_blank">http://lists.sou=
rceforge.net/lists/listinfo/webadmin-devel</a><br> <br>
      </blockquote>
    </div>=20
  </blockquote><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>

--047d7b5d95894657f504d8886191--


--===============5391632686638295516==
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
--===============5391632686638295516==
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

--===============5391632686638295516==--