[Gllug] Perl / PHP

Bruce Richardson itsbruce at uklinux.net
Thu May 9 20:53:58 UTC 2002


On Thu, May 09, 2002 at 05:40:58PM +0100, Ms. wrote:
> Another thing I hate with Perl, is the ease you can write really bad 
> scripts.  The fact that you don't have to declare variables (yeah, yeah, 
> I know about use strict), makes my skin crawl.  

So if you have 'use strict' then you do have to declare variables.  PHP
doesn't give you this option and never requires variables to be
declared.  Yes, there is a var statement which you are encouraged to use
with objects but it is completely meaningless unless also used to
initialise the variable.  By itself it does nothing.  Maybe in the
future it will do something but now it does not.  But this lack of
function is not documented, which says volumes about the difference
between the PHP and Perl developers.

-- 
Bruce

Those who cast the votes decide nothing.  Those who count the
votes decide everything. -- Joseph Stalin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 261 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20020509/0644d2f2/attachment.pgp>


More information about the GLLUG mailing list